Files
api-ranking-jogos/routes/api.php
gabriellina640 f551520161 first commit
2026-04-13 21:39:44 -05:00

22 lines
795 B
PHP

<?php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\GameController;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider and all of them will
| be assigned to the "api" middleware group. Make something great!
|
*/
Route::prefix('v1')->group(function () {
Route::get('/rankings/general', [GameController::class, 'generalRanking']);
Route::get('/games/most-played', [GameController::class, 'mostPlayed']);
Route::get('/rankings/platforms/{platform}', [GameController::class, 'platformRanking']);
});