From 15dd9787d544eaa5fbeada668296c37b23cc7e81 Mon Sep 17 00:00:00 2001 From: tonititi Date: Fri, 26 Apr 2024 16:13:52 +0700 Subject: [PATCH] GREEN-40 relocate /removed endpoint behind debug middleware --- src/API.ts | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/API.ts b/src/API.ts index b309efa8..6e3d9f91 100644 --- a/src/API.ts +++ b/src/API.ts @@ -184,21 +184,6 @@ export function registerRoutes(server: FastifyInstance { - isDebugMiddleware(_request, reply) - }, - }, - (_request: FullNodeListRequest, reply) => { - profilerInstance.profileSectionStart('removed') - nestedCountersInstance.countEvent('consensor', 'removed') - reply.send(Crypto.sign({ removedAndApopedNodes: Cycles.removedAndApopedNodes })) - profilerInstance.profileSectionEnd('removed') - } - ) - server.get('/archivers', (_request, reply) => { profilerInstance.profileSectionStart('GET_archivers') nestedCountersInstance.countEvent('consensor', 'GET_archivers') @@ -911,6 +896,21 @@ export function registerRoutes(server: FastifyInstance { + isDebugMiddleware(_request, reply) + }, + }, + (_request: FullNodeListRequest, reply) => { + profilerInstance.profileSectionStart('removed') + nestedCountersInstance.countEvent('consensor', 'removed') + reply.send(Crypto.sign({ removedAndApopedNodes: Cycles.removedAndApopedNodes })) + profilerInstance.profileSectionEnd('removed') + } + ) // dataSenders Endpoint server.get(