import type { User, SetupStatus } from '@citytracker/shared'; import { api } from './client'; export function login(username: string, password: string) { return api.post('/auth/login', { username, password }); } export function logout() { return api.post('/auth/logout'); } export function fetchMe() { return api.get('/auth/me'); } export function fetchSetupStatus() { return api.get('/auth/setup-status'); } export function setup(username: string, password: string) { return api.post('/auth/setup', { username, password }); }