fix(noc): resolve 401 error on sync endpoint and allow public GET access to monitoring
This commit is contained in:
@@ -91,6 +91,11 @@ export function apiMiddleware(app: Elysia) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Allow public GET access to NOC monitoring endpoints
|
||||
if (url.pathname.startsWith("/api/noc/") && request.method === "GET") {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!user) {
|
||||
logger.warn(`[AUTH] Unauthorized: ${request.method} ${request.url}`);
|
||||
set.status = 401;
|
||||
|
||||
Reference in New Issue
Block a user