Browse Source

missing post

master
gsd 1 year ago
parent
commit
8cd6d408ec
  1. 11
      src/main/java/app/controllers/user/DetailController.java

11
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<SteamID> GetSteamOnHashMap4Web(HttpServletRequest request,
@RequestBody HashMap<String, String> container) {
if (!container.containsKey("any")) return new ResponseEntity(HttpStatus.BAD_REQUEST);
return new ResponseEntity<>(profileService.GetSteamIDFromAnyData(container.get("any")), HttpStatus.OK);
}
}

Loading…
Cancel
Save