Fix backend url
This commit is contained in:
1 parent
4d335bfd57
commit
4600879c6e
3 files changed
+3
-3
No files matched your search
@@ -4,7 +4,7 @@ export default async function validateUser(userId) {
|
||||
const csrfToken = await getXSRFToken();
|
||||
try {
|
||||
const res = await fetch(
|
||||
`http://${import.meta.env.VITE_API_URL}/api/users/${userId}/validate`,
|
||||
`${import.meta.env.VITE_API_URL}/api/users/${userId}/validate`,
|
||||
{
|
||||
method: "POST",
|
||||
credentials: "include",
|
||||
|
||||
Reference in new issue
Block a user