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 f35f3f5 commit ccb99a2Copy full SHA for ccb99a2
src/routes.ts
@@ -2,9 +2,9 @@ import type { Route } from './type';
2
3
export function generateRoutesConfig(routes: Route[]): string {
4
return routes.map(route => `
5
- location = ${route.path} {
6
- if ($request_method = ${route.method}) {
7
- proxy_pass http://${route.target};
8
- }
9
- }`).join('');
+ location = ${route.path} {
+ if ($request_method = ${route.method}) {
+ proxy_pass http://${route.target};
+ }
+ }`).join('');
10
}
0 commit comments