Catalyst / admin/Synapse-Sonar 14.8 GB / 57.8 GB 40.0 GB free
Help Sign in

admin / Synapse-Sonar

public

Attack Surface Simulation

Code Issues Pull requests Pipelines Packages Security Insights Wiki Settings
Synapse-Sonar / synapse-sonar / middleware.ts 623 B · main
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
export { default } from "next-auth/middleware";

/**
 * Protects the authenticated app surface. Unauthenticated users hitting these
 * paths are redirected to /login by next-auth. Public routes (/login, /setup,
 * /api/auth, /api/setup, /api/ingest) are intentionally excluded.
 */
export const config = {
  matcher: [
    "/",
    "/integrations/:path*",
    "/admin/:path*",
    "/profile/:path*",
    // protected APIs (ingest + auth + setup stay public)
    "/api/graph/:path*",
    "/api/assets/:path*",
    "/api/integrations/:path*",
    "/api/users/:path*",
    "/api/tenant/:path*",
    "/api/mfa/:path*",
  ],
};