mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-18 20:59:41 +02:00
14 lines
327 B
JavaScript
14 lines
327 B
JavaScript
import { apiReq } from "./api-utils";
|
|
import i18n from "@/i18n.js";
|
|
|
|
export const utilsAPI = {
|
|
// import { api } from "@/api";
|
|
uploadFile(url, fileObject) {
|
|
return apiReq.post(
|
|
url,
|
|
fileObject,
|
|
() => i18n.t("general.failure-uploading-file"),
|
|
() => i18n.t("general.file-uploaded")
|
|
);
|
|
},
|
|
};
|