diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/RecipeController.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/RecipeController.java index 28ed7cf54d0c3d6ce1861a878b3bd04cd6da41a1..68ad57d3dd5df281237ef86ba134574d4013250d 100644 --- a/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/RecipeController.java +++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/RecipeController.java @@ -32,7 +32,7 @@ public class RecipeController { * @param id the id of the recipe * @return the recipe if it exists, otherwise 404 */ - @GetMapping("/{id}") + @GetMapping("/id/{id}") public ResponseEntity<Recipe> getRecipeById(@PathVariable("id") Long id) { return recipeService.getRecipeById(id) .map(ResponseEntity::ok)