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::view('/{path?}', 'app')->where('path', '.*');
22 Route::group(['prefix' => config('larascord.prefix'), 'middleware' => ['web']], function() {
23 Route::get('/callback', [DiscordController::class, 'handle'])
24 ->name('larascord.login');
26 Route::redirect('/refresh-token', '/login')
27 ->name('larascord.refresh_token');