e-verify/services/auth-service.js
2024-05-14 22:19:14 +07:00

16 lines
342 B
JavaScript

import axios from '../lib/axios'
const headers = {
headers: { 'Content-Type': 'multipart/form-data' },
}
export const LoginPost = async (data) => {
const response = await axios.post('login', data, headers)
return response.data
}
export const LogoutGet = async () => {
const response = await axios.get('logout')
return response.data
}