X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=routes%2Fapi.php;h=1b0ea84e4a065335e9e2d4247d8ba0ec0c2980ec;hb=a5e53546a5960f54fb45e06767f89e9dfeef6a47;hp=b9a4614eb322e8d12a629628c7c160b5dad52547;hpb=3a774bb649734fc3a2135ec1b52cef9a049880ee;p=alttp.git diff --git a/routes/api.php b/routes/api.php index b9a4614..1b0ea84 100644 --- a/routes/api.php +++ b/routes/api.php @@ -18,6 +18,21 @@ Route::middleware('auth:sanctum')->get('/user', function (Request $request) { return $request->user(); }); +Route::get('alttp-seed/{hash}', 'App\Http\Controllers\AlttpSeedController@byHash'); +Route::post('alttp-seed/{hash}/retry', 'App\Http\Controllers\AlttpSeedController@retry'); + +Route::post('aos-generate', 'App\Http\Controllers\AosSeedController@generate'); +Route::get('aos-presets', 'App\Http\Controllers\AosSeedController@presets'); +Route::get('aos-seed/{hash}', 'App\Http\Controllers\AosSeedController@byHash'); +Route::post('aos-seed/{hash}/retry', 'App\Http\Controllers\AosSeedController@retry'); + +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('discord-guilds/{guild_id}/channels', 'App\Http\Controllers\DiscordChannelController@search'); + Route::get('protocol/{tournament}', 'App\Http\Controllers\ProtocolController@forTournament'); Route::post('results', 'App\Http\Controllers\ResultController@create'); @@ -29,6 +44,12 @@ 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'); Route::get('users/{id}', 'App\Http\Controllers\UserController@single'); Route::post('users/set-language', 'App\Http\Controllers\UserController@setLanguage');