We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a0f5a8 commit 910f427Copy full SHA for 910f427
mimir-rag/src/server/server.ts
@@ -58,10 +58,10 @@ export async function createServer(options: ServerOptions = {}): Promise<{ app:
58
);
59
app.use(applyCors);
60
61
- // Apply API key middleware to all routes except /mcp/* and /webhook/* endpoints
+ // Apply API key middleware to all routes except /mcp/*, /webhook/*, and /health endpoints
62
const apiKeyMiddleware = createApiKeyMiddleware(context.config.server.apiKey);
63
app.use((req: any, res: any, next: any) => {
64
- if (req.path.startsWith('/mcp/') || req.path.startsWith('/webhook/')) {
+ if (req.path.startsWith('/mcp/') || req.path.startsWith('/webhook/') || req.path === '/health') {
65
next();
66
} else {
67
apiKeyMiddleware(req, res, next);
0 commit comments