X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=routes%2Fweb.php;h=375962dd7a05b47ee449a3f3049fad36df2bafba;hb=5b21bf8a7e7efed35389c693fcf3775d6ee3f0ec;hp=ed62f1017910f25fb2adf2d6b66bfc9aea779bbe;hpb=78ee3a45427e1227013773b2a1c19fc1ee0efc12;p=alttp.git diff --git a/routes/web.php b/routes/web.php index ed62f10..375962d 100644 --- a/routes/web.php +++ b/routes/web.php @@ -1,5 +1,7 @@ group(function() { + Route::view('/{path?}', 'aos')->where('path', '.*'); +}); + 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'); +});