DEV Community

Discussion on: Simple REST API with Deno

Collapse
 
rudy750 profile image
Rudy Sarmiento

Hey,
you also left out:

const app = new Application()

app.use(router.routes())
app.use(router.allowedMethods())

console.log(`Listening on port ${PORT} ...`)
await app.listen(`${HOST}:${PORT}`)
Collapse
 
am77 profile image
Mohamed Amine Griche

Thank you.