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()->load(['channel_crews', 'channel_crews.channel']);
21 Route::get('alttp-seed/{hash}', 'App\Http\Controllers\AlttpSeedController@byHash');
22 Route::post('alttp-seed/{hash}/retry', 'App\Http\Controllers\AlttpSeedController@retry');
24 Route::post('aos-generate', 'App\Http\Controllers\AosSeedController@generate');
25 Route::get('aos-presets', 'App\Http\Controllers\AosSeedController@presets');
26 Route::get('aos-seed/{hash}', 'App\Http\Controllers\AosSeedController@byHash');
27 Route::post('aos-seed/{hash}/retry', 'App\Http\Controllers\AosSeedController@retry');
29 Route::post('application/{application}/accept', 'App\Http\Controllers\ApplicationController@accept');
30 Route::post('application/{application}/reject', 'App\Http\Controllers\ApplicationController@reject');
32 Route::get('content', 'App\Http\Controllers\TechniqueController@search');
33 Route::get('content/{tech:name}', 'App\Http\Controllers\TechniqueController@single');
35 Route::get('discord-guilds', 'App\Http\Controllers\DiscordGuildController@search');
36 Route::get('discord-guilds/{guild_id}', 'App\Http\Controllers\DiscordGuildController@single');
37 Route::get('discord-guilds/{guild_id}/channels', 'App\Http\Controllers\DiscordChannelController@search');
39 Route::get('episodes', 'App\Http\Controllers\EpisodeController@search');
40 Route::post('episodes/{episode}/add-restream', 'App\Http\Controllers\EpisodeController@addRestream');
41 Route::post('episodes/{episode}/crew-manage', 'App\Http\Controllers\EpisodeController@crewManage');
42 Route::post('episodes/{episode}/crew-signup', 'App\Http\Controllers\EpisodeController@crewSignup');
43 Route::post('episodes/{episode}/edit-restream', 'App\Http\Controllers\EpisodeController@editRestream');
44 Route::post('episodes/{episode}/remove-restream', 'App\Http\Controllers\EpisodeController@removeRestream');
46 Route::get('events', 'App\Http\Controllers\EventController@search');
47 Route::get('events/{event:name}', 'App\Http\Controllers\EventController@single');
49 Route::get('markers/{map}', 'App\Http\Controllers\TechniqueController@forMap');
51 Route::get('protocol/{tournament}', 'App\Http\Controllers\ProtocolController@forTournament');
53 Route::post('results', 'App\Http\Controllers\ResultController@create');
55 Route::post('rounds', 'App\Http\Controllers\RoundController@create');
56 Route::put('rounds/{round}', 'App\Http\Controllers\RoundController@update');
57 Route::post('rounds/{round}/lock', 'App\Http\Controllers\RoundController@lock');
58 Route::post('rounds/{round}/setSeed', 'App\Http\Controllers\RoundController@setSeed');
59 Route::post('rounds/{round}/unlock', 'App\Http\Controllers\RoundController@unlock');
61 Route::get('tech', 'App\Http\Controllers\TechniqueController@search');
62 Route::get('tech/{tech:name}', 'App\Http\Controllers\TechniqueController@single');
64 Route::get('tournaments/{id}', 'App\Http\Controllers\TournamentController@single');
65 Route::post('tournaments/{tournament}/apply', 'App\Http\Controllers\TournamentController@apply');
66 Route::post('tournaments/{tournament}/close', 'App\Http\Controllers\TournamentController@close');
67 Route::post('tournaments/{tournament}/discord', 'App\Http\Controllers\TournamentController@discord');
68 Route::post('tournaments/{tournament}/discord-settings', 'App\Http\Controllers\TournamentController@discordSettings');
69 Route::post('tournaments/{tournament}/lock', 'App\Http\Controllers\TournamentController@lock');
70 Route::post('tournaments/{tournament}/open', 'App\Http\Controllers\TournamentController@open');
71 Route::post('tournaments/{tournament}/unlock', 'App\Http\Controllers\TournamentController@unlock');
73 Route::get('users', 'App\Http\Controllers\UserController@search');
74 Route::get('users/{id}', 'App\Http\Controllers\UserController@single');
75 Route::post('users/set-language', 'App\Http\Controllers\UserController@setLanguage');
76 Route::post('users/{user}/setNickname', 'App\Http\Controllers\UserController@setNickname');
77 Route::post('users/{user}/setStreamLink', 'App\Http\Controllers\UserController@setStreamLink');