命名路由如何鉴权
访问 `GET`: `/api/goods/1234456` 时我该如何鉴权？

```js
// router.js
router.resources('goods', '/api/goods', controller.goods);

// 鉴权中间件
async function(ctx, next) {
    const routerWhiteList = [
      'post:/api/goods',
      'get:/api/goods/:id',
    ];
    const url = ctx.url;
    const params = ctx.params; // undefined
    
    const flag = routerWhiteList.includes(`${ctx.method.toLocaleLowerCase()}:${url}`);
    if (flag) {
      await next();
    } else {
      // ...
    }
  };

```
