- Use the "POST" method for shutdown and cancelShutdown requests.

- Polish some messages.
This commit is contained in:
Lampros Smyrnaios 2023-05-23 22:24:49 +03:00
parent 9fdaa9503b
commit bfa569685a
1 changed files with 6 additions and 6 deletions

View File

@ -56,7 +56,7 @@ public class GeneralController {
public static boolean shouldShutdownWorker = false;
@GetMapping("shutdownWorker")
@PostMapping("shutdownWorker")
public ResponseEntity<?> shutdownWorkerGracefully(HttpServletRequest request)
{
String initMsg = "Received a \"shutdownWorker\" request. ";
@ -76,7 +76,7 @@ public class GeneralController {
}
@GetMapping("cancelShutdownWorker")
@PostMapping("cancelShutdownWorker")
public ResponseEntity<?> cancelShutdownWorkerGracefully(HttpServletRequest request)
{
String initMsg = "Received a \"cancelShutdownWorker\" request. ";