Files
gameno-dashboard/src/api/authApi.js
T
kavehhn ba509734ae Add attendance hub, categorized sidebar, and UI preferences page.
Improve dashboard and navigation access to attendance, group the right-side menu by category, and let each account save default theme and font size.
2026-08-16 07:28:58 +03:30

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)
};