mirror of
https://github.com/KeyZox71/knl_meowscendence.git
synced 2025-10-13 18:44:45 +02:00
「🔨」 fix: fixed a massive skill issue but f*ck js
This commit is contained in:
@ -109,5 +109,5 @@ export default async function(fastify, options) {
|
|||||||
}
|
}
|
||||||
}, async (request, reply) => { return register(request, reply, saltRounds, fastify); });
|
}, async (request, reply) => { return register(request, reply, saltRounds, fastify); });
|
||||||
|
|
||||||
fastify.get('/logout', {}, async (request, reply) => { return logout(request, reply, fastify); })
|
fastify.get('/logout', {}, async (request, reply) => { return logout(reply, fastify); })
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
/**
|
/**
|
||||||
* @async
|
* @async
|
||||||
* @param {import("fastify").FastifyReply} reply
|
* @param {import("fastify").FastifyReply} reply
|
||||||
|
* @param {import("fastify").FastifyInstance} fastify
|
||||||
*
|
*
|
||||||
* @returns {import("fastify").FastifyReply}
|
* @returns {import("fastify").FastifyReply}
|
||||||
*/
|
*/
|
||||||
export async function logout(reply) {
|
export async function logout(reply, fastify) {
|
||||||
try {
|
try {
|
||||||
return reply
|
return reply
|
||||||
.code(200)
|
.code(200)
|
||||||
|
Reference in New Issue
Block a user