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")
can access / user/aaa normally.
how can I tell whether it is a parameter or a path?