From 34255c93c8e8e498479a641de58372f34be843f8 Mon Sep 17 00:00:00 2001 From: Teriuihi Date: Tue, 6 Aug 2024 22:23:04 +0200 Subject: [PATCH] Add REST annotations to StaffAppController Introduce `@RestController` and `@RequestMapping` annotations to the `StaffAppController` class. This change standardizes the API endpoint and ensures all methods within this class are mapped correctly under `/api/apply`. --- src/main/java/com/alttd/forms/apply/StaffAppController.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/alttd/forms/apply/StaffAppController.java b/src/main/java/com/alttd/forms/apply/StaffAppController.java index 8451ef1..8383ea5 100644 --- a/src/main/java/com/alttd/forms/apply/StaffAppController.java +++ b/src/main/java/com/alttd/forms/apply/StaffAppController.java @@ -10,12 +10,15 @@ import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; import java.util.concurrent.CompletableFuture; +@RestController +@RequestMapping("/api/apply") public class StaffAppController { - private static final Logger logger = LoggerFactory.getLogger(StaffAppController.class); @PostMapping("/staffApplication")