fix: undead endpoint does not require JWT

This commit is contained in:
Andras Bacsai 2022-09-19 08:53:36 +02:00
parent e9b9e9e82c
commit 99127652af

View File

@ -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' };
}); });