import api from '../index'

export default {
  login: (data: { user_name: string; password: string }) => api.post('magic-api/auth/login', data),

  logout: () => api.post('magic-api/auth/logout'),

  userInfo: () => api.get('magic-api/auth/user_info'),
}
