Skip to content

Commit 00978ff

Browse files
committed
fix: upper case HTTP verbs in routes
1 parent 71d3e26 commit 00978ff

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/emit_routes.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ const emitRoutes = (
3535
out = out.addLine(`${op.name}: {`, nestLevel + 1);
3636

3737
// http method
38-
out = out.addLine(`method: '${httpOp[0].verb}',`, nestLevel + 2);
38+
out = out.addLine(
39+
`method: '${httpOp[0].verb.toUpperCase()}',`,
40+
nestLevel + 2,
41+
);
3942

4043
// url parameters
4144
const pathParams = httpOp[0].parameters.parameters.filter(

0 commit comments

Comments
 (0)