Closed kibertoad closed 1 year ago
It's already supported, see example in https://github.com/SkeLLLa/fastify-metrics/blob/master/src/__tests__/endpoint-object.spec.ts
You can pass fastify route configuration object and do auth in preHandler
for example.
@kibertoad did previous comment help you solving issue?
Closing this since it's already possible with this API. Feel free to reopen if you need more details or functionality.
It would be great to support authentication for scraping requests.
api proposal: