Skip to content

Commit e9d5412

Browse files
committed
delete method checking
1 parent c7ebbb6 commit e9d5412

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/routes.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,8 @@ import type { Route } from './type';
22

33
export function generateRoutesConfig(routes: Route[]): string {
44
return routes.map(route => `
5+
# ${route.method}
56
location ${route.path} {
6-
if ($request_method = ${route.method}) {
7-
proxy_pass http://${route.target};
8-
}
7+
proxy_pass http://${route.target};
98
}`).join('');
10-
// return routes.map(route => `
11-
// location ${route.path} {
12-
// proxy_pass http://${route.target};
13-
// }`).join('');
149
}

0 commit comments

Comments
 (0)