]> git.localhorst.tv Git - alttp.git/blobdiff - routes/web.php
simple schedule display
[alttp.git] / routes / web.php
index 903ca72c0694d6e4dfc3b3499978df73e99c5109..375962dd7a05b47ee449a3f3049fad36df2bafba 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,18 @@ use Illuminate\Support\Facades\Route;
 |
 */
 
+Route::get('/sitemap.xml', [SitemapXmlController::class, 'index']);
+
+Route::domain(config('aos.hostname'))->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::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');
 });