3 use App\Http\Controllers\DiscordController;
4 use App\Http\Controllers\SitemapXmlController;
5 use Illuminate\Support\Facades\Route;
8 |--------------------------------------------------------------------------
10 |--------------------------------------------------------------------------
12 | Here is where you can register web routes for your application. These
13 | routes are loaded by the RouteServiceProvider within a group which
14 | contains the "web" middleware group. Now create something great!
18 Route::get('/sitemap.xml', [SitemapXmlController::class, 'index']);
20 Route::domain(config('aos.hostname'))->group(function() {
21 Route::view('/{path?}', 'aos')->where('path', '.*');
24 Route::view('/{path?}', 'app')->where('path', '.*');
26 Route::group(['prefix' => config('larascord.prefix'), 'middleware' => ['web']], function() {
27 Route::get('/callback', [DiscordController::class, 'handle'])
28 ->name('larascord.login');
30 Route::redirect('/refresh-token', '/login')
31 ->name('larascord.refresh_token');