D
Deno
Change Theme
Search Answer Overflow
Login
Mongalorian
Posts
Comments
D
Deno
•
Created by alexp95 on 10/17/2023 in
#help
How do I have a subrouter in Oak?
You should be able to nest routers like this:
router.
use
(
'/subroute'
,
subRouter.
routes
(),
subRouter.
allowedMethods
(),
)
router.
use
(
'/subroute'
,
subRouter.
routes
(),
subRouter.
allowedMethods
(),
)
5 replies