3 use Illuminate\Http\Request;
4 use Illuminate\Support\Facades\Route;
7 |--------------------------------------------------------------------------
9 |--------------------------------------------------------------------------
11 | Here is where you can register API routes for your application. These
12 | routes are loaded by the RouteServiceProvider within a group which
13 | is assigned the "api" middleware group. Enjoy building your API!
17 Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
18 return $request->user();
21 Route::get('protocol/{tournament}', 'App\Http\Controllers\ProtocolController@forTournament');
23 Route::post('results', 'App\Http\Controllers\ResultController@create');
25 Route::post('rounds', 'App\Http\Controllers\RoundController@create');
26 Route::post('rounds/{round}/setSeed', 'App\Http\Controllers\RoundController@setSeed');
28 Route::get('tournaments/{id}', 'App\Http\Controllers\TournamentController@single');
30 Route::get('users/{id}', 'App\Http\Controllers\UserController@single');
31 Route::post('users/set-language', 'App\Http\Controllers\UserController@setLanguage');
32 Route::post('users/{user}/setStreamLink', 'App\Http\Controllers\UserController@setStreamLink');