3 use App\Http\Controllers\DiscordController;
4 use Illuminate\Support\Facades\Route;
7 |--------------------------------------------------------------------------
9 |--------------------------------------------------------------------------
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!
17 Route::view('/{path?}', 'app')->where('path', '.*');
19 Route::group(['prefix' => config('larascord.prefix'), 'middleware' => ['web']], function() {
20 Route::get('/callback', [DiscordController::class, 'handle'])
21 ->name('larascord.login');
23 Route::redirect('/refresh-token', '/login')
24 ->name('larascord.refresh_token');