We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7ebbb6 commit e9d5412Copy full SHA for e9d5412
src/routes.ts
@@ -2,13 +2,8 @@ import type { Route } from './type';
2
3
export function generateRoutesConfig(routes: Route[]): string {
4
return routes.map(route => `
5
+ # ${route.method}
6
location ${route.path} {
- if ($request_method = ${route.method}) {
7
- proxy_pass http://${route.target};
8
- }
+ proxy_pass http://${route.target};
9
}`).join('');
10
- // return routes.map(route => `
11
- // location ${route.path} {
12
- // proxy_pass http://${route.target};
13
- // }`).join('');
14
}
0 commit comments