diff --git a/LeaderboardBackend/Controllers/LeaderboardsController.cs b/LeaderboardBackend/Controllers/LeaderboardsController.cs index 434f91c2..66dc1f49 100644 --- a/LeaderboardBackend/Controllers/LeaderboardsController.cs +++ b/LeaderboardBackend/Controllers/LeaderboardsController.cs @@ -9,12 +9,9 @@ namespace LeaderboardBackend.Controllers; -public class LeaderboardsController : ApiController +public class LeaderboardsController(ILeaderboardService leaderboardService) : ApiController { - private readonly ILeaderboardService _leaderboardService; - - public LeaderboardsController(ILeaderboardService leaderboardService) => - _leaderboardService = leaderboardService; + private readonly ILeaderboardService _leaderboardService = leaderboardService; [AllowAnonymous] [HttpGet("api/leaderboard/{id:long}")]