|
|
@ -30,9 +30,14 @@ public class ProfileController { |
|
|
|
@GetMapping("/current") |
|
|
|
@NeedValidCookie |
|
|
|
public ResponseEntity GetCurrentUser(HttpServletRequest request, |
|
|
|
@CookieValue(value = "steam64", defaultValue = "") String steam64 |
|
|
|
@CookieValue(value = "steam64", defaultValue = "") String steam64, |
|
|
|
@RequestParam(value = "requests", defaultValue = "") String requests |
|
|
|
){ |
|
|
|
return new ResponseEntity(profileService.GetProfile(steam64), HttpStatus.OK); |
|
|
|
if (requests.isEmpty()) { |
|
|
|
return new ResponseEntity(profileService.GetProfile(steam64), HttpStatus.OK); |
|
|
|
} else { |
|
|
|
return new ResponseEntity(profileService.GetProfile(steam64, requests), HttpStatus.OK); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@PostMapping("/current/freevip") |
|
|
|