Initial commit: admin dashboard for GameNo.
Vue 3 + Vite dashboard with PrimeVue, i18n, and API integration for institution management.
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// /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 }),
|
||||
getSelf: () => axiosInstance.get('/users/user/get-self')
|
||||
};
|
||||
Reference in New Issue
Block a user