fix: do not expose metrics

This commit is contained in:
2026-03-12 21:38:14 +01:00
parent fcdbc4e878
commit 21e2e094d6

View File

@@ -309,15 +309,6 @@ app.get('/up', async (c) => {
return c.text('it works');
});
app.get('/metrics', async () => {
return new Response(await chatMetricsRegistry.metrics(), {
headers: {
'Content-Type': chatMetricsRegistry.contentType,
'Cache-Control': 'no-store, no-cache, must-revalidate, proxy-revalidate',
},
});
});
app.get(
'/ws/:username',
upgradeWebSocket((c) => ({