as described by stackoverflow Separate router and controller in koa .
if the Controller layer is really going to use class to build an instance, how can it be easier and more elegant to use on Router?
as described by stackoverflow Separate router and controller in koa .
if the Controller layer is really going to use class to build an instance, how can it be easier and more elegant to use on Router?
koa-router routing settings are as follows, router.get( user :id ) router.get( user aaa ) cannot access user aaa, is parsed to the parameter aaa ; when the following settings are set, router.get( user aaa ) router.get( user :id ) c...