Thing I want to achieve is create multiple routers and a main router that routes requests to other routers.
router.use("/strategy", strategyRoutes);
router.use("/account", accountRoutes);
router,strategyRoutes and accountRoutes are express.Router()
objects. I can do it in express I wonder is there any way to mimic this in Deno's Oak Framework. Their router has a router.use
function but it accepts a middleware function not another router.
Currently, it's not supported, there's an open issue regarding this feature:
https://github.com/oakserver/oak/issues/6