first commit

This commit is contained in:
gabriellina640
2026-04-13 21:39:44 -05:00
commit f551520161
95 changed files with 14931 additions and 0 deletions

21
routes/api.php Normal file
View File

@@ -0,0 +1,21 @@
<?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']);
});