Fix backend url conf

This commit is contained in:
T'JAMPENS QUENTIN p2406187 committed 2026-01-12 21:50:03 +01:00
1 parent 6723d42a5f
commit 1c10240b8d
19 files changed
+20 -20

No files matched your search

@@ -4,7 +4,7 @@ export default async function deleteNotificationUser(notificationId) {
const csrfToken = await getXSRFToken();
try {
const res = await fetch(`http://${import.meta.env.VITE_API_URL}/api/users/delete/notification/${notificationId}`, {
const res = await fetch(`${import.meta.env.VITE_API_URL}/api/users/delete/notification/${notificationId}`, {
method: 'DELETE',
credentials: 'include',
headers: {
@@ -1,7 +1,7 @@
export default async function getUserNotifications() {
try {
const response = await fetch(
`http://${import.meta.env.VITE_API_URL}/api/users/notifications`,
`${import.meta.env.VITE_API_URL}/api/users/notifications`,
{
method: 'GET',
credentials: 'include',
+1 -1
View File
@@ -5,7 +5,7 @@ export default async function readNotifications() {
const csrfToken = await getXSRFToken();
try {
const res = await fetch(`http://${import.meta.env.VITE_API_URL}/api/users/notifications/read`, {
const res = await fetch(`${import.meta.env.VITE_API_URL}/api/users/notifications/read`, {
method: 'POST',
credentials: 'include',
headers: {