import { ApiResponse, AuthUser, LoginCredentials } from '../../types' import { apiClient } from './client' export const authApi = { login: async (credentials: LoginCredentials): Promise> => { const response = await apiClient.post('/auth/login', credentials) return response.data }, logout: async (): Promise => { const response = await apiClient.post('/auth/logout') return response.data }, me: async (): Promise> => { const response = await apiClient.get('/auth/me') return response.data }, }