update
This commit is contained in:
@@ -9,7 +9,7 @@ const authServices = {
|
||||
},
|
||||
tokenAxios?: any,
|
||||
) => {
|
||||
return axiosClient.post(`/Auth/login`, data, {
|
||||
return axiosClient.post(`/api/v1/Auth/login`, data, {
|
||||
cancelToken: tokenAxios,
|
||||
});
|
||||
},
|
||||
@@ -22,7 +22,7 @@ const authServices = {
|
||||
},
|
||||
tokenAxios?: any,
|
||||
) => {
|
||||
return axiosClient.post(`/Auth/register`, data, {
|
||||
return axiosClient.post(`/api/v1/Auth/register`, data, {
|
||||
cancelToken: tokenAxios,
|
||||
});
|
||||
},
|
||||
@@ -32,13 +32,13 @@ const authServices = {
|
||||
},
|
||||
tokenAxios?: any,
|
||||
) => {
|
||||
return axiosClient.post(`/Auth/refresh`, data, {
|
||||
return axiosClient.post(`/api/v1/Auth/refresh`, data, {
|
||||
cancelToken: tokenAxios,
|
||||
});
|
||||
},
|
||||
logout: (tokenAxios?: any) => {
|
||||
return axiosClient.post(
|
||||
`/Auth/logout`,
|
||||
`/api/v1/Auth/logout`,
|
||||
{},
|
||||
{
|
||||
cancelToken: tokenAxios,
|
||||
|
||||
Reference in New Issue
Block a user