2 Commits

Author SHA1 Message Date
8601915f76 Merge remote-tracking branch 'origin/master'
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 37s
2024-07-27 20:26:43 +01:00
ef4cbc4015 change top to top 50 2024-07-27 20:26:28 +01:00

View File

@ -30,7 +30,7 @@ public class ScoresController {
/**
* A GET mapping to retrieve the top
* 100 scores for a platform
* 50 scores for a platform
*
* @param platform the platform to get the scores from
* @return the scores
@ -39,7 +39,7 @@ public class ScoresController {
@ResponseBody
@GetMapping(value = "/top/{platform}")
public ResponseEntity<List<?>> getTopScores(@PathVariable String platform) {
return ResponseEntity.ok(trackedScoreService.getTopScores(Platform.Platforms.getPlatform(platform), 100));
return ResponseEntity.ok(trackedScoreService.getTopScores(Platform.Platforms.getPlatform(platform), 50));
}
/**