LoginApi.js
567 Bytes
import {axiosInstance} from "@/Request/PublicAxiosInstance"
import {filterEmptyValueInObject} from "@/PublicUtil/PublicUtil"
class LoginApi {
login(data) {
return axiosInstance.request(
{
method: 'POST',
url: `/users/login`,
data: data,
}
)
}
logout() {
return axiosInstance.request(
{
method: 'GET',
url: `/users/logout`,
}
)
}
}
const loginApi = new LoginApi()
export default loginApi