Confusion about this in routing when the controller uses class to build an instance

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?

Mar.29,2021
  • Koa-router route matching problem

    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...

    Mar.18,2021
Menu