Improve dashboard and navigation access to attendance, group the right-side menu by category, and let each account save default theme and font size.
12 lines
536 B
JavaScript
12 lines
536 B
JavaScript
// /src/api/authApi.js
|
|
import axiosInstance from './axiosInstance';
|
|
|
|
export const authApi = {
|
|
login: (data) => axiosInstance.post('/auth/login', data),
|
|
refresh: (refreshToken) => axiosInstance.post('/auth/refresh', { refreshToken }),
|
|
logout: (refreshToken) => axiosInstance.post('/auth/logout', { refreshToken }),
|
|
changePassword: (data) => axiosInstance.put('/auth/change-password', data),
|
|
getSelf: () => axiosInstance.get('/users/user/get-self'),
|
|
updateSelf: (data) => axiosInstance.put('/users/user/update-self', data)
|
|
};
|