X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=routes%2Fweb.php;h=782fb6ddab7874c31cb0974a496cec9c309d34e5;hb=e10222af705e3475fcea6e0b17d1c9984a62db26;hp=ed62f1017910f25fb2adf2d6b66bfc9aea779bbe;hpb=78ee3a45427e1227013773b2a1c19fc1ee0efc12;p=alttp.git diff --git a/routes/web.php b/routes/web.php index ed62f10..782fb6d 100644 --- a/routes/web.php +++ b/routes/web.php @@ -1,5 +1,10 @@ call('App\Http\Controllers\TechniqueController@web', ['type' => 'dungeon', 'name' => $name]); +}); + +Route::get('/locations/{name}', function($name) { + return app()->call('App\Http\Controllers\TechniqueController@web', ['type' => 'location', 'name' => $name]); +}); + +Route::get('/modes/{name}', function($name) { + return app()->call('App\Http\Controllers\TechniqueController@web', ['type' => 'mode', 'name' => $name]); +}); + +Route::get('/rulesets/{name}', function($name) { + return app()->call('App\Http\Controllers\TechniqueController@web', ['type' => 'ruleset', 'name' => $name]); +}); + +Route::get('/tech/{name}', function($name) { + return app()->call('App\Http\Controllers\TechniqueController@web', ['type' => 'tech', 'name' => $name]); +}); + Route::view('/{path?}', 'app')->where('path', '.*'); + +Route::group(['prefix' => config('larascord.prefix'), 'middleware' => ['web']], function() { + Route::get('/callback', [DiscordController::class, 'handle']) + ->name('larascord.login'); + + Route::redirect('/refresh-token', '/login') + ->name('larascord.refresh_token'); +});