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.
status
error
1 parent bb789cd commit eca7a97Copy full SHA for eca7a97
apps/cli/templates/backend/server/elysia/src/index.ts.hbs
@@ -65,11 +65,11 @@ const app = new Elysia()
65
)
66
{{#if (eq auth "better-auth")}}
67
.all("/api/auth/*", async (context) => {
68
- const { request } = context;
+ const { request, status } = context;
69
if (["POST", "GET"].includes(request.method)) {
70
return auth.handler(request);
71
}
72
- context.error(405);
+ return status(405)
73
})
74
{{/if}}
75
{{#if (eq api "orpc")}}
0 commit comments