-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi.php
24 lines (20 loc) · 861 Bytes
/
api.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
use App\Http\Controllers\API\FixtureController;
use App\Http\Controllers\API\TeamController;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
Route::get('/teams', [TeamController::class, 'index']);
Route::get('/teams/{slug}', [TeamController::class, 'show']);
//Route::get('/history', [TeamController::class, 'history']);
Route::get('/fixtures', [FixtureController::class, 'index']);
Route::post('/fixtures/edit', [FixtureController::class, 'edit']);