How do I have a subrouter in Oak?
I want to use a subrouter in oak to handle part of the routing, how would I do that in Oak? here is an example in Express.js
4 Replies
Hi there.
I've used Express before, But first time seeing something like subrouter, can you provide a link, please?
GitHub
GitHub - oakserver/oak: A middleware framework for handling HTTP wi...
A middleware framework for handling HTTP with Deno 🐿️ 🦕 - GitHub - oakserver/oak: A middleware framework for handling HTTP with Deno 🐿️ 🦕
You should be able to nest routers like this:
it worked, thank you!