refactor: Modification de l'url de l'api Auth

This commit is contained in:
Luc SORIGNET
2025-02-13 17:06:09 +01:00
parent 8b3f9637a9
commit 9bf9c5f62d
7 changed files with 52 additions and 75 deletions

View File

@ -2,7 +2,7 @@
import {
BE_AUTH_LOGIN_URL,
BE_AUTH_REGISTER_URL,
BE_AUTH_PROFILE_URL,
BE_AUTH_PROFILES_URL,
BE_AUTH_RESET_PASSWORD_URL,
BE_AUTH_NEW_PASSWORD_URL,
FE_USERS_LOGIN_URL ,
@ -67,7 +67,7 @@ export const disconnect = () => {
export const createProfile = (data,csrfToken) => {
const request = new Request(
`${BE_AUTH_PROFILE_URL}`,
`${BE_AUTH_PROFILES_URL}`,
{
method:'POST',
headers: {
@ -83,7 +83,7 @@ const request = new Request(
export const updateProfile = (id, data, csrfToken) => {
const request = new Request(
`${BE_AUTH_PROFILE_URL}/${id}`,
`${BE_AUTH_PROFILES_URL}/${id}`,
{
method:'PUT',
headers: {