fix(GRO-1211): skip auth middleware for /api/webhooks/* routes

fix(GRO-1211): skip auth middleware for /api/webhooks/* routes
This commit was merged in pull request #401.
This commit is contained in:
the-dogfather-cto[bot]
2026-05-14 08:39:43 +00:00
committed by GitHub
+2 -1
View File
@@ -23,7 +23,8 @@ if (process.env.AUTH_DISABLED === "true") {
}
export const authMiddleware: MiddlewareHandler = async (c, next) => {
if (c.req.path.startsWith("/api/auth/")) {
const path = c.req.path;
if (path.startsWith("/api/auth/") || path.startsWith("/api/webhooks/")) {
await next();
return;
}