import { api } from "@/lib/api-client";

export const storageService = {
  async upload(formData: FormData): Promise<{ url: string; filename: string }> {
    return api.upload("/storage/upload", formData);
  },

  async getUrl(filename: string): Promise<{ url: string }> {
    return api.get("/storage/url", { filename });
  },
};
