]> git.localhorst.tv Git - alttp.git/blob - routes/web.php
change footer
[alttp.git] / routes / web.php
1 <?php
2
3 use App\Http\Controllers\DiscordController;
4 use App\Http\Controllers\SitemapXmlController;
5 use Illuminate\Support\Facades\Route;
6
7 /*
8 |--------------------------------------------------------------------------
9 | Web Routes
10 |--------------------------------------------------------------------------
11 |
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!
15 |
16 */
17
18 Route::get('/sitemap.xml', [SitemapXmlController::class, 'index']);
19
20 Route::view('/{path?}', 'app')->where('path', '.*');
21
22 Route::group(['prefix' => config('larascord.prefix'), 'middleware' => ['web']], function() {
23         Route::get('/callback', [DiscordController::class, 'handle'])
24                 ->name('larascord.login');
25
26         Route::redirect('/refresh-token', '/login')
27                 ->name('larascord.refresh_token');
28 });