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

Merged
groombook-engineer[bot] merged 1 commits from fix/GRO-1211-telnyx-webhook-401 into dev 2026-05-14 08:39:43 +00:00
+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;
}