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

bugfix: add http get protocol

parent 79b3c43b
No related branches found
No related tags found
No related merge requests found
package ntnu.idatt2016.v233.SmartMat.controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
......@@ -17,7 +18,7 @@ public class WeeklyMenuController {
private WeeklyMenuService weeklyMenuService;
@RequestMapping("/getWeeklyMenu/{fridgeId}")
@GetMapping("/getWeeklyMenu/{fridgeId}")
public ResponseEntity<List<Object[]>> getWeeklyMenu(@PathVariable("fridgeId") Long fridgeId) {
List<Object[]> weeklyMenu = weeklyMenuService.getTop5RecipesWithProducts(fridgeId);
......
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