import { apiClient } from './apiClient.js'

export const authApi = {
  register: ({ username, password }) =>
    apiClient.post('/api/auth/register', { username, password }).then((r) => r.data),

  login: ({ username, password }) =>
    apiClient.post('/api/auth/login', { username, password }).then((r) => r.data),
}

