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