Reports test
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
import axiosInstance from "../http/axiosInstance";
|
||||
import axiosInstance, { axiosInstanceAuth } from "../http/axiosInstance";
|
||||
|
||||
export default class AuthService {
|
||||
static async login(data: any) {
|
||||
return await axiosInstance.post(`/auth/login`, data, {
|
||||
return await axiosInstanceAuth.post(`/auth/login`, data, {
|
||||
headers: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded'
|
||||
}
|
||||
@ -10,10 +10,10 @@ export default class AuthService {
|
||||
}
|
||||
|
||||
static async refreshToken(token: string) {
|
||||
return await axiosInstance.post(`/auth/refresh_token/${token}`)
|
||||
return await axiosInstanceAuth.post(`/auth/refresh_token/${token}`)
|
||||
}
|
||||
|
||||
static async getCurrentUser(token: string) {
|
||||
return await axiosInstance.get(`/auth/get_current_user/${token}`)
|
||||
return await axiosInstanceAuth.get(`/auth/get_current_user/${token}`)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user