]> git.localhorst.tv Git - alttp.git/blobdiff - routes/web.php
sitemap xml controller
[alttp.git] / routes / web.php
index 903ca72c0694d6e4dfc3b3499978df73e99c5109..450d21f5ab5b2dcc50ca20cfa5c2dc58dc8ba74a 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 
 use App\Http\Controllers\DiscordController;
+use App\Http\Controllers\SitemapXmlController;
 use Illuminate\Support\Facades\Route;
 
 /*
@@ -14,12 +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::get('/callback', [DiscordController::class, 'handle'])
+               ->name('larascord.login');
 
-    Route::redirect('/refresh-token', '/login')
-        ->name('larascord.refresh_token');
+       Route::redirect('/refresh-token', '/login')
+               ->name('larascord.refresh_token');
 });