This is just a RUSHED layer over Deno's native HTTP api.
It has no support for middlewares.
It's obviously not ready for production, but is relatively easy to extend.
import app from "https://deno.land/x/unnamed@0.1.2/mod.ts";
app()
.onGet({
"/hello": () => "Hello world",
"/double/:number": ({ params }) => Number(params?.number) * 2,
})
.onPost({
"/echo": (req) => req.json(),
})
//Works with onDelete and onPut too
.init();