@duplojs/destruct-floor
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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);
});

Readme

Keywords

none

Package Sidebar

Install

npm i @duplojs/destruct-floor

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

7.23 kB

Total Files

5

Last publish

Collaborators

  • mathcovax