]> git.localhorst.tv Git - alttp.git/blob - routes/web.php
listen to round updates
[alttp.git] / routes / web.php
1 <?php
2
3 use App\Http\Controllers\DiscordController;
4 use Illuminate\Support\Facades\Route;
5
6 /*
7 |--------------------------------------------------------------------------
8 | Web Routes
9 |--------------------------------------------------------------------------
10 |
11 | Here is where you can register web routes for your application. These
12 | routes are loaded by the RouteServiceProvider within a group which
13 | contains the "web" middleware group. Now create something great!
14 |
15 */
16
17 Route::view('/{path?}', 'app')->where('path', '.*');
18
19 Route::group(['prefix' => config('larascord.prefix'), 'middleware' => ['web']], function() {
20     Route::get('/callback', [DiscordController::class, 'handle'])
21         ->name('larascord.login');
22
23     Route::redirect('/refresh-token', '/login')
24         ->name('larascord.refresh_token');
25 });