Skip to content

Commit

Permalink
Forandret til requestparam i JobbController.java #deploy-levende-arbe…
Browse files Browse the repository at this point in the history
…idsforhold-scheduler
  • Loading branch information
Andrea-Devold-Fjeld committed Jul 30, 2024
1 parent 92dfade commit d6766d0
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Optional;
Expand All @@ -30,8 +31,9 @@ public class JobbController {
* @return respons til klienten for den tilsvarende spørringen
*/
@GetMapping
public ResponseEntity<String> reschedule(HttpServletRequest request) {
String intervall = request.getHeader("intervall");
public ResponseEntity<String> reschedule(@RequestParam String intervall) {
//String intervall = request.getHeader("intervall");


if (intervall == null) {
return ResponseEntity.badRequest().body("intervall er ikke spesifisert");
Expand Down

0 comments on commit d6766d0

Please sign in to comment.