Skip to content

Commit 951fef2

Browse files
committed
trigger workflow
1 parent 2dbaee9 commit 951fef2

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

bench/routers/routers/rou3.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ type Handler = (params: Record<string, string>) => string;
99
addRoute(router, 'GET', '/', (_) => 'GET /');
1010
addRoute(router, 'GET', '/about', (_) => 'GET /about');
1111

12-
addRoute(router, 'GET', '/user/:id', (params) => 'GET /user/:id ' + params.id!);
13-
addRoute(router, 'PUT', '/user/:id', (params) => 'PUT /user/:id ' + params.id!);
12+
addRoute(router, 'GET', '/user/:id', (params) => 'GET /user/:id ' + params.id);
13+
addRoute(router, 'PUT', '/user/:id', (params) => 'PUT /user/:id ' + params.id);
1414

1515
addRoute(router, 'POST', '/post', (_) => 'POST /post');
16-
addRoute(router, 'GET', '/post/:id', (params) => 'GET /post/:id ' + params.id!);
17-
addRoute(router, 'PUT', '/post/:id', (params) => 'PUT /post/:id ' + params.id!);
16+
addRoute(router, 'GET', '/post/:id', (params) => 'GET /post/:id ' + params.id);
17+
addRoute(router, 'PUT', '/post/:id', (params) => 'PUT /post/:id ' + params.id);
1818

19-
addRoute(router, 'GET', '/post/:id/comments', (params) => 'GET /post/:id/comments ' + params.id!);
20-
addRoute(router, 'POST', '/post/:id/comment', (params) => 'POST /post/:id/comment ' + params.id!);
19+
addRoute(router, 'GET', '/post/:id/comments', (params) => 'GET /post/:id/comments ' + params.id);
20+
addRoute(router, 'POST', '/post/:id/comment', (params) => 'POST /post/:id/comment ' + params.id);
2121

2222
simple_api.it('rou3', (method, path) => {
2323
let res = findRoute(router, method, path);

0 commit comments

Comments
 (0)