Elysia in Deno
Usingtl;dr: export default
the Elysia app and run it with deno serve
.
import { Elysia } from 'elysia'
export default new Elysia()
.get('/', 'Hello Elysia')
.get('/user/:id', ({ params: { id } }) => id)
.post('/form', ({ body }) => body)
# Run the app
deno serve --allow-env main.ts
# Run the app in watch mode, restarting on file changes
deno serve --watch --allow-env main.ts