router.get("/news/:aid", async (ctx) => {
  console.log(ctx.params, 'ctxxxxxxxxxxxxxxxxxxxxx')
  ctx.body="news detail"
});

请求一下

localhost:5000/news/111

可以看到在ctx.params种有动态路由带的参数