Koa(2.15.3) Router Resolve the problem
## I don't speak English well

## Koa(2.15.3) Router Resolve the problem

## Please see the source code 👇

### Wrong version:

```js
const Koa = require('koa');
const Router = require('koa-router');
const app = new Koa();
const router = new Router();

const verifyAuth = async (ctx, next) => {
  console.log('Authentication successful');
  await next();
};
router.get('/categorie/:id', verifyAuth, async (ctx) => {
  const id = ctx.params.id;
  ctx.body = `请求了id: ${id}`;
});

router.get('/categorie/list', verifyAuth, async (ctx) => {
  ctx.body = '请求了list';
});

app
  .use(router.routes())
  .use(router.allowedMethods());
app.listen(9090, () => {
  console.log('服务器在 http://localhost:9090 上运行');
});
```

### The correct version:

```js
const Koa = require('koa');
const Router = require('koa-router');
const app = new Koa();
const router = new Router();

const verifyAuth = async (ctx, next) => {
  console.log('Authentication successful');
  await next();
};
router.get('/categorie/list', verifyAuth, async (ctx) => {
  ctx.body = '请求了list';
});

router.get('/categorie/:id', verifyAuth, async (ctx) => {
  const id = ctx.params.id;
  ctx.body = `请求了id: ${id}`;
});

app
  .use(router.routes())
  .use(router.allowedMethods());
app.listen(9090, () => {
  console.log('服务器在 http://localhost:9090 上运行');
});
```

All you need to do is swap the `/categorie/list`position

package.json

```json
{
  "name": "Koa2 BUG ",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC",
  "dependencies": {
    "koa": "^2.15.3",
    "koa-router": "^12.0.1"
  }
}
```
![image](https://github.com/user-attachments/assets/96b7b7df-017f-4584-9017-933d18af3d3f)


