From 2c7d47e0f0df87f162edb5fa7dd3acec9158774f Mon Sep 17 00:00:00 2001 From: Maximilian Leopold Date: Wed, 8 May 2019 14:04:50 +0200 Subject: [PATCH] Fixed Delete Cache Method --- .../java/hhn/labsw/bugageocaching/controller/Controller.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/hhn/labsw/bugageocaching/controller/Controller.java b/src/main/java/hhn/labsw/bugageocaching/controller/Controller.java index 928bef1..f80aea1 100644 --- a/src/main/java/hhn/labsw/bugageocaching/controller/Controller.java +++ b/src/main/java/hhn/labsw/bugageocaching/controller/Controller.java @@ -378,7 +378,7 @@ public class Controller { @ApiResponse(code = 404, message = "Database error") }) @CrossOrigin(origins = "*", allowedHeaders = "*") // only for dev purpose - @RequestMapping(value = "/api/deleteCache", method = RequestMethod.DELETE, produces = "application/json") + @RequestMapping(value = "/api/deleteCache", method = {RequestMethod.DELETE, RequestMethod.GET}, produces = "application/json") @ResponseBody public ResponseEntity deleteCache(@RequestParam String cacheID) { return deleteCacheUtil(cacheID);