X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=routes%2Fapi.php;h=fc7fd9ca7aea32833a478b68b52b745edd8fc907;hb=f446d5bcf3b87bd9443a060e27e9c0601c96fbb9;hp=43285317b68dfbfcba84a0dfa39e2c97451c7799;hpb=43da6b2ec78774e7b045a09c68af39717b5f5dbc;p=alttp.git diff --git a/routes/api.php b/routes/api.php index 4328531..fc7fd9c 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,8 @@ 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}/discord-settings', 'App\Http\Controllers\TournamentController@discordSettings'); 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');