mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 14:33:33 -07:00
update by url
This commit is contained in:
parent
92e7e4e59c
commit
8a1aa19dc9
1 changed files with 5 additions and 0 deletions
|
@ -61,6 +61,11 @@ export const recipeAPI = {
|
||||||
return response;
|
return response;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
async updateImagebyURL(slug, url) {
|
||||||
|
const response = apiReq.post(recipeURLs.updateImage(slug), { url: url });
|
||||||
|
return response;
|
||||||
|
},
|
||||||
|
|
||||||
async update(data) {
|
async update(data) {
|
||||||
let response = await apiReq.put(recipeURLs.update(data.slug), data);
|
let response = await apiReq.put(recipeURLs.update(data.slug), data);
|
||||||
store.dispatch("requestRecentRecipes");
|
store.dispatch("requestRecentRecipes");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue