mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-23 15:19:41 +02:00
nextcloud migration
This commit is contained in:
parent
cdad8b054e
commit
af87045037
23 changed files with 851 additions and 126 deletions
|
@ -6,6 +6,11 @@ const migrationBase = baseURL + "migration/";
|
|||
|
||||
const migrationURLs = {
|
||||
chowdownURL: migrationBase + "chowdown/repo/",
|
||||
nextcloudAvaiable: migrationBase + "nextcloud/available/",
|
||||
nextcloudImport: (selection) =>
|
||||
`${migrationBase}nextcloud/${selection}/import/`,
|
||||
nextcloudDelete: (selection) =>
|
||||
`${migrationBase}nextcloud/${selection}/delete/`,
|
||||
};
|
||||
|
||||
export default {
|
||||
|
@ -15,4 +20,12 @@ export default {
|
|||
store.dispatch("requestRecentRecipes");
|
||||
return response.data;
|
||||
},
|
||||
async getNextcloudImports() {
|
||||
let response = await apiReq.get(migrationURLs.nextcloudAvaiable);
|
||||
return response.data;
|
||||
},
|
||||
async importNextcloud(selected) {
|
||||
let response = await apiReq.post(migrationURLs.nextcloudImport(selected));
|
||||
return response.data;
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue