|
@ -2,6 +2,7 @@ package app.controllers.user; |
|
|
|
|
|
|
|
|
import app.annotations.enums.AuthMethod; |
|
|
import app.annotations.enums.AuthMethod; |
|
|
import app.annotations.interfaces.CheckWebAccess; |
|
|
import app.annotations.interfaces.CheckWebAccess; |
|
|
|
|
|
import app.annotations.interfaces.CollectStatistic; |
|
|
import app.annotations.interfaces.WaitAfterNext; |
|
|
import app.annotations.interfaces.WaitAfterNext; |
|
|
import app.entities.other.SteamID; |
|
|
import app.entities.other.SteamID; |
|
|
import app.services.db.KillfeedService; |
|
|
import app.services.db.KillfeedService; |
|
@ -25,6 +26,7 @@ public class KillFeedController { |
|
|
@GetMapping("/weapons") |
|
|
@GetMapping("/weapons") |
|
|
@CheckWebAccess(auth_method = AuthMethod.STEAM64) |
|
|
@CheckWebAccess(auth_method = AuthMethod.STEAM64) |
|
|
@WaitAfterNext(order = "weapons") |
|
|
@WaitAfterNext(order = "weapons") |
|
|
|
|
|
@CollectStatistic |
|
|
public ResponseEntity getPopulateWeapons(HttpServletRequest request, |
|
|
public ResponseEntity getPopulateWeapons(HttpServletRequest request, |
|
|
@CookieValue(value = "steam64", defaultValue = "") String mysteam64, |
|
|
@CookieValue(value = "steam64", defaultValue = "") String mysteam64, |
|
|
@RequestParam(required = false) String steam64, |
|
|
@RequestParam(required = false) String steam64, |
|
@ -40,6 +42,7 @@ public class KillFeedController { |
|
|
@GetMapping("/top") |
|
|
@GetMapping("/top") |
|
|
@CheckWebAccess(auth_method = AuthMethod.STEAM64) |
|
|
@CheckWebAccess(auth_method = AuthMethod.STEAM64) |
|
|
@WaitAfterNext(order = "top") |
|
|
@WaitAfterNext(order = "top") |
|
|
|
|
|
@CollectStatistic |
|
|
public ResponseEntity getTopKills(HttpServletRequest request, |
|
|
public ResponseEntity getTopKills(HttpServletRequest request, |
|
|
@RequestParam(required = false) String srv) { |
|
|
@RequestParam(required = false) String srv) { |
|
|
return new ResponseEntity(killfeedService.getTopKills(srv), HttpStatus.OK); |
|
|
return new ResponseEntity(killfeedService.getTopKills(srv), HttpStatus.OK); |
|
@ -48,6 +51,7 @@ public class KillFeedController { |
|
|
@GetMapping |
|
|
@GetMapping |
|
|
@CheckWebAccess(auth_method = AuthMethod.STEAM64) |
|
|
@CheckWebAccess(auth_method = AuthMethod.STEAM64) |
|
|
@WaitAfterNext(order = "kills") |
|
|
@WaitAfterNext(order = "kills") |
|
|
|
|
|
@CollectStatistic |
|
|
public ResponseEntity getKills(HttpServletRequest request, |
|
|
public ResponseEntity getKills(HttpServletRequest request, |
|
|
@CookieValue(value = "steam64", defaultValue = "") String mysteam64, |
|
|
@CookieValue(value = "steam64", defaultValue = "") String mysteam64, |
|
|
@RequestParam(required = false) String steam64, |
|
|
@RequestParam(required = false) String steam64, |
|
@ -63,6 +67,7 @@ public class KillFeedController { |
|
|
@PutMapping |
|
|
@PutMapping |
|
|
@CheckWebAccess(auth_method = AuthMethod.STEAM64) |
|
|
@CheckWebAccess(auth_method = AuthMethod.STEAM64) |
|
|
@WaitAfterNext(order = "assists") |
|
|
@WaitAfterNext(order = "assists") |
|
|
|
|
|
@CollectStatistic |
|
|
public ResponseEntity getAssists(HttpServletRequest request, |
|
|
public ResponseEntity getAssists(HttpServletRequest request, |
|
|
@CookieValue(value = "steam64", defaultValue = "") String mysteam64, |
|
|
@CookieValue(value = "steam64", defaultValue = "") String mysteam64, |
|
|
@RequestParam(required = false) String steam64, |
|
|
@RequestParam(required = false) String steam64, |
|
@ -78,6 +83,7 @@ public class KillFeedController { |
|
|
@DeleteMapping |
|
|
@DeleteMapping |
|
|
@CheckWebAccess(auth_method = AuthMethod.STEAM64) |
|
|
@CheckWebAccess(auth_method = AuthMethod.STEAM64) |
|
|
@WaitAfterNext(order = "deads") |
|
|
@WaitAfterNext(order = "deads") |
|
|
|
|
|
@CollectStatistic |
|
|
public ResponseEntity getDeads(HttpServletRequest request, |
|
|
public ResponseEntity getDeads(HttpServletRequest request, |
|
|
@CookieValue(value = "steam64", defaultValue = "") String mysteam64, |
|
|
@CookieValue(value = "steam64", defaultValue = "") String mysteam64, |
|
|
@RequestParam(required = false) String steam64, |
|
|
@RequestParam(required = false) String steam64, |
|
@ -93,6 +99,7 @@ public class KillFeedController { |
|
|
@DeleteMapping("/top") |
|
|
@DeleteMapping("/top") |
|
|
@CheckWebAccess(auth_method = AuthMethod.STEAM64) |
|
|
@CheckWebAccess(auth_method = AuthMethod.STEAM64) |
|
|
@WaitAfterNext(order = "top") |
|
|
@WaitAfterNext(order = "top") |
|
|
|
|
|
@CollectStatistic |
|
|
public ResponseEntity getTopDeads(HttpServletRequest request, |
|
|
public ResponseEntity getTopDeads(HttpServletRequest request, |
|
|
@RequestParam(required = false) String srv) { |
|
|
@RequestParam(required = false) String srv) { |
|
|
return new ResponseEntity(killfeedService.getTopDeads(srv), HttpStatus.OK); |
|
|
return new ResponseEntity(killfeedService.getTopDeads(srv), HttpStatus.OK); |
|
|