Closed zhaoyao91 closed 9 years ago
this router is cool, but i want to add base url to the router so i can use it like this:
var pub = routuer({baseUrl:'/test'}); pub.post('/wow', ...);
then url '/test/wow' can be visited
can this be possible by some ways?
3q
Check out koa-resourcer, it uses koa-joi-router behind-the-scenes and provides a framework for "mounting" on paths.
this router is cool, but i want to add base url to the router so i can use it like this:
var pub = routuer({baseUrl:'/test'}); pub.post('/wow', ...);
then url '/test/wow' can be visited
can this be possible by some ways?
3q