Skip to content
Snippets Groups Projects
Commit 0d5cc4ab authored by Stian Lyng's avatar Stian Lyng
Browse files

bugfix: fix endpoint path

parent 17b4998e
No related branches found
No related tags found
No related merge requests found
...@@ -32,7 +32,7 @@ public class RecipeController { ...@@ -32,7 +32,7 @@ public class RecipeController {
* @param id the id of the recipe * @param id the id of the recipe
* @return the recipe if it exists, otherwise 404 * @return the recipe if it exists, otherwise 404
*/ */
@GetMapping("/{id}") @GetMapping("/id/{id}")
public ResponseEntity<Recipe> getRecipeById(@PathVariable("id") Long id) { public ResponseEntity<Recipe> getRecipeById(@PathVariable("id") Long id) {
return recipeService.getRecipeById(id) return recipeService.getRecipeById(id)
.map(ResponseEntity::ok) .map(ResponseEntity::ok)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment