fix: undead endpoint does not require JWT
This commit is contained in:
parent
e9b9e9e82c
commit
99127652af
@ -23,9 +23,7 @@ const root: FastifyPluginAsync = async (fastify): Promise<void> => {
|
|||||||
onRequest: [fastify.authenticate]
|
onRequest: [fastify.authenticate]
|
||||||
}, async (request) => await getCurrentUser(request, fastify));
|
}, async (request) => await getCurrentUser(request, fastify));
|
||||||
|
|
||||||
fastify.get('/undead', {
|
fastify.get('/undead', async function () {
|
||||||
onRequest: [fastify.authenticate]
|
|
||||||
}, async function () {
|
|
||||||
return { message: 'nope' };
|
return { message: 'nope' };
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -47,7 +45,7 @@ const root: FastifyPluginAsync = async (fastify): Promise<void> => {
|
|||||||
onRequest: [fastify.authenticate]
|
onRequest: [fastify.authenticate]
|
||||||
}, async (request) => await restartCoolify(request));
|
}, async (request) => await restartCoolify(request));
|
||||||
|
|
||||||
fastify.post('/internal/resetQueue', {
|
fastify.post('/internal/resetQueue', {
|
||||||
onRequest: [fastify.authenticate]
|
onRequest: [fastify.authenticate]
|
||||||
}, async (request) => await resetQueue(request));
|
}, async (request) => await resetQueue(request));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user