import { http } from "@/utils/http";

export type UploadResult = {
  success: boolean;
  data: {
    url: string;
  };
};

export const formUpload = (data: FormData): Promise<UploadResult> => {
  return http.request("post", "/upload", { data });
};
