From 99127652afe4aef77871fa75a80bc521ba16e8c9 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 19 Sep 2022 08:53:36 +0200 Subject: [PATCH] fix: undead endpoint does not require JWT --- apps/api/src/routes/api/v1/index.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/api/src/routes/api/v1/index.ts b/apps/api/src/routes/api/v1/index.ts index bab30236b..6ec94e479 100644 --- a/apps/api/src/routes/api/v1/index.ts +++ b/apps/api/src/routes/api/v1/index.ts @@ -23,9 +23,7 @@ const root: FastifyPluginAsync = async (fastify): Promise => { onRequest: [fastify.authenticate] }, async (request) => await getCurrentUser(request, fastify)); - fastify.get('/undead', { - onRequest: [fastify.authenticate] - }, async function () { + fastify.get('/undead', async function () { return { message: 'nope' }; }); @@ -47,7 +45,7 @@ const root: FastifyPluginAsync = async (fastify): Promise => { onRequest: [fastify.authenticate] }, async (request) => await restartCoolify(request)); - fastify.post('/internal/resetQueue', { + fastify.post('/internal/resetQueue', { onRequest: [fastify.authenticate] }, async (request) => await resetQueue(request));