Skip to content

Commit

Permalink
update ex
Browse files Browse the repository at this point in the history
  • Loading branch information
Aitthi committed Dec 1, 2023
1 parent bb56888 commit 0f03c8a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions examples/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,14 @@ async function bootstrap() {
// console.log(ctx)
// throw new Error(HttpException(400, 'Bad Request'))
let req = new Request(ctx)
let res = new Response(ctx)

return {
res.json({
form: req.form(),
form_extended: req.form(true)
}
})

return res.end()
})

await app.listen(3000, '0.0.0.0', () => {
Expand Down

0 comments on commit 0f03c8a

Please sign in to comment.