@@ -6,16 +6,16 @@ |
||
6 | 6 | |
7 | 7 | Route::prefix('api')->group(function () { |
8 | 8 | |
9 | - // Games |
|
10 | - Route::get('games/{id}', [GameController::class, 'show'])->name('games.show'); |
|
11 | - Route::get('games/{id}/versions', [GameController::class, 'showVersions'])->name('games.versions'); |
|
12 | - Route::get('games/{id}/players', [GameController::class, 'showPlayers'])->name('games.players'); |
|
9 | + // Games |
|
10 | + Route::get('games/{id}', [GameController::class, 'show'])->name('games.show'); |
|
11 | + Route::get('games/{id}/versions', [GameController::class, 'showVersions'])->name('games.versions'); |
|
12 | + Route::get('games/{id}/players', [GameController::class, 'showPlayers'])->name('games.players'); |
|
13 | 13 | |
14 | - // Players |
|
15 | - Route::get('players/{id}', [PlayerController::class, 'show'])->name('players.show'); |
|
16 | - Route::get('players/name/{name}', [PlayerController::class, 'showWithName'])->name('players.show-with-name'); |
|
17 | - Route::post('players', [PlayerController::class, 'create'])->name('players.create'); |
|
18 | - Route::put('players/{id}', [PlayerController::class, 'update'])->name('players.update'); |
|
19 | - Route::get('players/{id}/games', [PlayerController::class, 'showGames'])->name('players.games'); |
|
14 | + // Players |
|
15 | + Route::get('players/{id}', [PlayerController::class, 'show'])->name('players.show'); |
|
16 | + Route::get('players/name/{name}', [PlayerController::class, 'showWithName'])->name('players.show-with-name'); |
|
17 | + Route::post('players', [PlayerController::class, 'create'])->name('players.create'); |
|
18 | + Route::put('players/{id}', [PlayerController::class, 'update'])->name('players.update'); |
|
19 | + Route::get('players/{id}/games', [PlayerController::class, 'showGames'])->name('players.games'); |
|
20 | 20 | |
21 | 21 | } |
22 | 22 | \ No newline at end of file |
@@ -4,7 +4,7 @@ |
||
4 | 4 | use Furic\GameEssentials\Http\Controllers\GameController; |
5 | 5 | use Furic\GameEssentials\Http\Controllers\PlayerController; |
6 | 6 | |
7 | -Route::prefix('api')->group(function () { |
|
7 | +Route::prefix('api')->group(function() { |
|
8 | 8 | |
9 | 9 | // Games |
10 | 10 | Route::get('games/{id}', [GameController::class, 'show'])->name('games.show'); |