diff --git a/frontend/src/Api.js b/frontend/src/Api.js index 76ac30e..e9c31ac 100644 --- a/frontend/src/Api.js +++ b/frontend/src/Api.js @@ -22,5 +22,11 @@ export default { }] }), + getRandom: () => instance.get('/api/v1/recipe/random', { + transformResponse: [function (data) { + return data? JSON.parse(data) : data; + }] + }), + removeForId: (id) => instance.delete('/api/v1/items/'+ id) } \ No newline at end of file diff --git a/frontend/src/App.vue b/frontend/src/App.vue index ec3d87b..7420f12 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -1,3 +1,5 @@ + + diff --git a/frontend/src/components/Custom404Page.vue b/frontend/src/components/Custom404Page.vue index 5ad891b..a91b58b 100644 --- a/frontend/src/components/Custom404Page.vue +++ b/frontend/src/components/Custom404Page.vue @@ -14,7 +14,7 @@ export default {