mirror of
https://github.com/KeyZox71/knl_meowscendence.git
synced 2025-12-31 21:56:41 +01:00
「🔨」 fix: fixed some things.
This commit is contained in:
@ -5,7 +5,7 @@ import axios from 'axios'
|
|||||||
* @param {import('fastify').FastifyInstance} fastify
|
* @param {import('fastify').FastifyInstance} fastify
|
||||||
*/
|
*/
|
||||||
export async function authUserRemove(username, fastify) {
|
export async function authUserRemove(username, fastify) {
|
||||||
const url = (process.env.USER_URL || "http://localhost:3002/") + "users/" + username;
|
const url = ((process.env.USER_URL + "/") || "http://localhost:3002/") + "users/" + username;
|
||||||
const cookie = fastify.jwt.sign({ user: "admin" });
|
const cookie = fastify.jwt.sign({ user: "admin" });
|
||||||
|
|
||||||
await axios.post(
|
await axios.post(
|
||||||
|
|||||||
Reference in New Issue
Block a user