diff --git a/index.ts b/index.ts index cf4c687..1824214 100644 --- a/index.ts +++ b/index.ts @@ -72,7 +72,7 @@ async function AntelopeTokenAPI() { app.get( "/metrics", - async (_) => new Response(await prometheus.registry.metrics(), { headers: { "Content-Type": prometheus.registry.contentType } }) + async (ctx: Context) => ctx.json, 200>(await prometheus.registry.getMetricsAsJSON()) ); // --------------------------