import { request } from "@/api/client";
import type { LoginResponse } from "@/types/api";

export function login(email: string, password: string) {
  return request<LoginResponse>("/auth/login", {
    method: "POST",
    data: {
      email,
      password
    },
    skipAuth: true
  });
}
