From 8cd6d408ec47759c66cff9804cd8798b147d7c3e Mon Sep 17 00:00:00 2001 From: gsd Date: Fri, 20 Oct 2023 17:15:19 +0300 Subject: [PATCH] missing post --- .../java/app/controllers/user/DetailController.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/main/java/app/controllers/user/DetailController.java b/src/main/java/app/controllers/user/DetailController.java index 7bd4cb4..393ffbc 100644 --- a/src/main/java/app/controllers/user/DetailController.java +++ b/src/main/java/app/controllers/user/DetailController.java @@ -63,4 +63,15 @@ public class DetailController { if (!container.containsKey("any")) return new ResponseEntity(HttpStatus.BAD_REQUEST); return new ResponseEntity<>(profileService.GetSteamIDFromAnyData(container.get("any")), HttpStatus.OK); } + + @PostMapping("/steam/web") + @CheckWebAccess(auth_method = AuthMethod.STEAM64) + @WaitAfterNext + public ResponseEntity GetSteamOnHashMap4Web(HttpServletRequest request, + @RequestBody HashMap container) { + if (!container.containsKey("any")) return new ResponseEntity(HttpStatus.BAD_REQUEST); + return new ResponseEntity<>(profileService.GetSteamIDFromAnyData(container.get("any")), HttpStatus.OK); + } + + }