change top to top 50

This commit is contained in:
Lee 2024-07-27 20:26:28 +01:00
parent 27e9a91f31
commit ef4cbc4015

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));
}
/**