rework random generation
This commit is contained in:
@@ -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)
|
removeForId: (id) => instance.delete('/api/v1/items/'+ id)
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user