23 lines
798 B
PHP
23 lines
798 B
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
use App\Http\Controllers\AuthController;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Web Routes
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here is where you can register web routes for your application. These
|
|
| routes are loaded by the RouteServiceProvider and all of them will
|
|
| be assigned to the "web" middleware group. Make something great!
|
|
|
|
|
*/
|
|
|
|
// Login
|
|
Route::get('/auth/login', [AuthController::class, 'redirect'])->name('login');
|
|
Route::get('/auth/callback', [AuthController::class, 'callback'])->name('callback');
|
|
Route::get('/auth/logout', [AuthController::class, 'logout'])->name('logout');
|
|
|
|
// SPA
|
|
Route::view('/{any?}', 'index')->where('any', '.*')->name('index'); |