fix(admin): add /api/health to public paths to allow k8s probe
This commit is contained in:
parent
58bba357b0
commit
a3fcbab5d8
@ -12,7 +12,7 @@ import { createHash } from "crypto";
|
||||
import { parseSessionCookie, loadAdminSession, canAccess } from "@/lib/auth";
|
||||
import { query } from "@/lib/db";
|
||||
|
||||
const PUBLIC_PATHS = ["/login", "/api/auth/login", "/api/auth/oidc"];
|
||||
const PUBLIC_PATHS = ["/login", "/api/auth/login", "/api/auth/oidc", "/api/health"];
|
||||
const PROTECTED_PATHS = ["/dashboard", "/admin", "/platform"];
|
||||
|
||||
function getRequiredPermission(path: string, method: string): string | null {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user