feat(monitoring): wrote plugin for /monitoring endpoint and updated service to use them

This commit is contained in:
Maieul BOYER 2025-11-14 19:25:10 +01:00
parent e44a3af76d
commit a4bf71cc6a
No known key found for this signature in database
4 changed files with 11 additions and 3 deletions

View file

@ -23,6 +23,7 @@ declare module 'fastify' {
const app: FastifyPluginAsync = async (fastify, opts): Promise<void> => {
void opts;
await fastify.register(utils.useMakeResponse);
await fastify.register(utils.useMonitoring);
await fastify.register(swagger.useSwagger, { service: __SERVICE_NAME });
await fastify.register(db.useDatabase as FastifyPluginAsync, {});
await fastify.register(auth.jwtPlugin as FastifyPluginAsync, {});
@ -38,7 +39,6 @@ const app: FastifyPluginAsync = async (fastify, opts): Promise<void> => {
void fastify.register(fastifyFormBody, {});
void fastify.register(fastifyMultipart, {});
fastify.get('/monitoring', () => 'Ok');
};
export default app;