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

@ -10,6 +10,13 @@ import {
import { FastifyReply } from 'fastify';
import fp from 'fastify-plugin';
export const useMonitoring = fp(async (fastify) => {
fastify.get('/monitoring', { schema: { hide: true } }, (req, res) => {
void req;
res.code(200).send('Ok');
});
});
const kMakeResponseSym = Symbol('make-response-sym');
declare module 'fastify' {
export interface RouteOptions {