import { apiPost } from './client';

export async function adminLogin(username: string, password: string): Promise<{ token: string }> {
  return apiPost<{ token: string }>('/admin/login', { username, password });
}

export async function adminSync(token: string): Promise<{ status: string; message: string }> {
  return apiPost<{ status: string; message: string }>('/admin/sync', undefined, token);
}
