import service from "~/service";
import { oldApi } from "./../baseUrl"

enum UserAPI { login = "/admin/login" }

export const login = (data: any) => {
  return service.post<any>({ url: oldApi +  UserAPI.login, data });
};
