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
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b35bd9-2bfe7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b35bd9-2bfe7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?