]> git.localhorst.tv Git - alttp.git/blobdiff - routes/web.php
round category select
[alttp.git] / routes / web.php
index ed62f1017910f25fb2adf2d6b66bfc9aea779bbe..450d21f5ab5b2dcc50ca20cfa5c2dc58dc8ba74a 100644 (file)
@@ -1,5 +1,7 @@
 <?php
 
+use App\Http\Controllers\DiscordController;
+use App\Http\Controllers\SitemapXmlController;
 use Illuminate\Support\Facades\Route;
 
 /*
@@ -13,4 +15,14 @@ use Illuminate\Support\Facades\Route;
 |
 */
 
+Route::get('/sitemap.xml', [SitemapXmlController::class, 'index']);
+
 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');
+});