Restore platform route and db diagnostics

This commit is contained in:
2026-05-21 13:22:17 -05:00
parent c477643781
commit 94064b27c3
4 changed files with 68 additions and 1 deletions

View File

@@ -53,6 +53,19 @@ class GameController extends Controller
return response()->json($games);
}
/**
* Ranking por plataforma
*/
public function platformRanking($platform)
{
$games = Game::where('platform', $platform)
->orderBy('weekly_points', 'desc')
->take(10)
->get();
return response()->json($games);
}
/**
* Histórico de ranking
*