I have a goal of setting up multiple routers along with a main router that can route requests to the other routers.
router.use("/strategy", strategyRoutes);
router.use("/account", accountRoutes);
The objects router, strategyRoutes, and accountRoutes are instances of express.Router()
. While I can achieve this in express, I am curious if there is a way to accomplish the same functionality in Deno's Oak Framework. The router in Oak does have a router.use
function, but it only accepts a middleware function and not another router.