From 0d5cc4ab841e8175aef75381f463f7496b00dee9 Mon Sep 17 00:00:00 2001 From: Stian Lyng <stianlyng@protonmail.com> Date: Mon, 24 Apr 2023 14:01:32 +0200 Subject: [PATCH] bugfix: fix endpoint path --- .../idatt2016/v233/SmartMat/controller/RecipeController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 28ed7cf5..68ad57d3 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) -- GitLab