|
|
@ -1,5 +1,6 @@ |
|
|
|
package app.controllers.user; |
|
|
|
|
|
|
|
import app.annotations.enums.AuthMethod; |
|
|
|
import app.annotations.interfaces.CheckPermitionFlag; |
|
|
|
import app.annotations.interfaces.CheckWebAccess; |
|
|
|
import app.entities.other.SteamID; |
|
|
@ -24,16 +25,14 @@ public class DetailController { |
|
|
|
} |
|
|
|
|
|
|
|
@GetMapping |
|
|
|
@CheckWebAccess |
|
|
|
@CheckPermitionFlag(flag = "z") |
|
|
|
@CheckWebAccess(auth_method = AuthMethod.SECRET_KEY) |
|
|
|
public ResponseEntity GetUser(HttpServletRequest request, |
|
|
|
@RequestParam String steam64) { |
|
|
|
return new ResponseEntity(profileService.GetProfile(steam64), HttpStatus.OK); |
|
|
|
} |
|
|
|
|
|
|
|
@GetMapping("/steam") |
|
|
|
@CheckWebAccess |
|
|
|
@CheckPermitionFlag(flag = "z") |
|
|
|
@CheckWebAccess(auth_method = AuthMethod.SECRET_KEY) |
|
|
|
public ResponseEntity<SteamID> GetSteam(HttpServletRequest request, |
|
|
|
@RequestParam String any) { |
|
|
|
return new ResponseEntity<>(profileService.GetSteamIDFromAnyData(any), HttpStatus.OK); |
|
|
|