feat(monitoring): wrote plugin for /monitoring endpoint and updated service to use them
This commit is contained in:
parent
e44a3af76d
commit
a4bf71cc6a
4 changed files with 11 additions and 3 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue