This commit is contained in:
TuanVT
2026-05-31 09:38:10 +07:00
parent 56e2733d8f
commit 62ca6dd0f9
32 changed files with 1785 additions and 381 deletions
+4 -4
View File
@@ -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,