1.0.1 • Published 25 days ago

@duplojs/destruct-floor v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
25 days ago

duplojs-destruct-floor

NPM version

Instalation

npm i @duplojs/destruct-floor

Utilisation

import Duplo, {zod} from "@duplojs/duplojs";
import duploDestructFloor from "@duplojs/destruct-floor";

const duplo = Duplo({port: 1506, host: "localhost", environment: "DEV"});
duplo.use(duploDestructFloor);

duplo.declareRoute("GET", "/")
.extract({
    query: {
        number: zod.coerce.number()
    },
})
.handler(({d: {number}}, response) => {
    response.code(200).send(number);
});
1.0.1

25 days ago

1.0.0

3 months ago

0.1.3

5 months ago

0.1.2

5 months ago

0.1.1

5 months ago

0.1.0

5 months ago