Skip to content

Commit a78c70f

Browse files
authored
fix(cli): better auth api routes are not found when hono (#583)
1 parent bd866b3 commit a78c70f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/cli/templates/backend/server/hono/src/index.ts.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ app.use(
5454
);
5555

5656
{{#if (eq auth "better-auth")}}
57-
app.on(["POST", "GET"], "/api/auth/**", (c) => auth.handler(c.req.raw));
57+
app.on(["POST", "GET"], "/api/auth/*", (c) => auth.handler(c.req.raw));
5858
{{/if}}
5959

6060
{{#if (eq api "orpc")}}

0 commit comments

Comments
 (0)