X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=routes%2Fapi.php;h=502373393d4bcf24167ab1beb0ac7de1f17686c4;hb=d566d913c251fbb05e6bd314cc51f8b5ca49fe57;hp=43285317b68dfbfcba84a0dfa39e2c97451c7799;hpb=43da6b2ec78774e7b045a09c68af39717b5f5dbc;p=alttp.git diff --git a/routes/api.php b/routes/api.php index 4328531..5023733 100644 --- a/routes/api.php +++ b/routes/api.php @@ -21,6 +21,9 @@ Route::middleware('auth:sanctum')->get('/user', function (Request $request) { Route::post('application/{application}/accept', 'App\Http\Controllers\ApplicationController@accept'); Route::post('application/{application}/reject', 'App\Http\Controllers\ApplicationController@reject'); +Route::get('discord-guilds', 'App\Http\Controllers\DiscordGuildController@search'); +Route::get('discord-guilds/{guild_id}', 'App\Http\Controllers\DiscordGuildController@single'); + Route::get('protocol/{tournament}', 'App\Http\Controllers\ProtocolController@forTournament'); Route::post('results', 'App\Http\Controllers\ResultController@create'); @@ -33,6 +36,7 @@ Route::post('rounds/{round}/unlock', 'App\Http\Controllers\RoundController@unloc Route::get('tournaments/{id}', 'App\Http\Controllers\TournamentController@single'); Route::post('tournaments/{tournament}/apply', 'App\Http\Controllers\TournamentController@apply'); Route::post('tournaments/{tournament}/close', 'App\Http\Controllers\TournamentController@close'); +Route::post('tournaments/{tournament}/discord', 'App\Http\Controllers\TournamentController@discord'); Route::post('tournaments/{tournament}/lock', 'App\Http\Controllers\TournamentController@lock'); Route::post('tournaments/{tournament}/open', 'App\Http\Controllers\TournamentController@open'); Route::post('tournaments/{tournament}/unlock', 'App\Http\Controllers\TournamentController@unlock');