@lid-http/body
v0.0.1-beta
Published
## example
Downloads
2
Readme
lid body parser
example
import { lid, route, t, bodyParser } from "TODO";
const app = lid();
app.use(bodyParser());
const routeA = route("POST", "/test")
.body(t.Object({ name: t.String() }))
.handle((ctx) => {
console.log(ctx.body.name); // string
return { name: ctx.body.name.toUpperCase() };
});