load recipe by id
This commit is contained in:
parent
3638909761
commit
21742e3b24
5 changed files with 54 additions and 5 deletions
|
|
@ -33,4 +33,13 @@ router.post(
|
|||
})
|
||||
);
|
||||
|
||||
router.get(
|
||||
"/:id",
|
||||
asyncHandler(async(req, res) => {
|
||||
const id = req.params.id;
|
||||
const responseDto = await recipeController.getRecipeById(id);
|
||||
res.status(201).json(responseDto);
|
||||
})
|
||||
)
|
||||
|
||||
export default router;
|
||||
Loading…
Add table
Add a link
Reference in a new issue