mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-21 14:19:41 +02:00
19 lines
484 B
JavaScript
19 lines
484 B
JavaScript
|
import { baseURL } from "./api-utils";
|
||
|
import { apiReq } from "./api-utils";
|
||
|
import { store } from "../store/store";
|
||
|
|
||
|
const migrationBase = baseURL + "migration/";
|
||
|
|
||
|
const migrationURLs = {
|
||
|
chowdownURL: migrationBase + "chowdown/repo/",
|
||
|
};
|
||
|
|
||
|
export default {
|
||
|
async migrateChowdown(repoURL) {
|
||
|
let postBody = { url: repoURL };
|
||
|
let response = await apiReq.post(migrationURLs.chowdownURL, postBody);
|
||
|
store.dispatch("requestRecentRecipes");
|
||
|
return response.data;
|
||
|
},
|
||
|
};
|