Skip to content

Commit 910f427

Browse files
committed
make /health endpoint public
1 parent 2a0f5a8 commit 910f427

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mimir-rag/src/server/server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ export async function createServer(options: ServerOptions = {}): Promise<{ app:
5858
);
5959
app.use(applyCors);
6060

61-
// Apply API key middleware to all routes except /mcp/* and /webhook/* endpoints
61+
// Apply API key middleware to all routes except /mcp/*, /webhook/*, and /health endpoints
6262
const apiKeyMiddleware = createApiKeyMiddleware(context.config.server.apiKey);
6363
app.use((req: any, res: any, next: any) => {
64-
if (req.path.startsWith('/mcp/') || req.path.startsWith('/webhook/')) {
64+
if (req.path.startsWith('/mcp/') || req.path.startsWith('/webhook/') || req.path === '/health') {
6565
next();
6666
} else {
6767
apiKeyMiddleware(req, res, next);

0 commit comments

Comments
 (0)