mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-29 07:53:23 +00:00
refactor: Modification de l'url de l'api Auth
This commit is contained in:
@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user