mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-03-20 21:18:19 -04:00
* remove duplicate keys * show context menu when not logged in * remove console.log * hide menu when printing * add response to event * add type definitions * show context menu always * add image name enums * upload/download single recipe * cleanup menu views+ localization Co-authored-by: hay-kot <hay-kot@pm.me>
15 lines
327 B
JavaScript
15 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")
|
|
);
|
|
},
|
|
};
|