add support for composition
satyarohith opened this issue · comments
Satya Rohith commented
We might have to introduce a new function named router()
that can take the same params as serve()
serve({
"/api": router({
"/users": (_req) => new Response("users"),
}),
});