first commit
This commit is contained in:
21
routes/api.php
Normal file
21
routes/api.php
Normal 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']);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user