load recipe by id

This commit is contained in:
Anika Raemer 2025-09-28 20:14:19 +02:00
parent 3638909761
commit 21742e3b24
5 changed files with 54 additions and 5 deletions

View file

@ -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;