redirect/routes/web.php

30 lines
757 B
PHP
Raw Normal View History

<?php
use Illuminate\Support\Facades\Route;
2022-10-13 11:41:38 +00:00
use App\Http\Controllers\RequestController;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
2022-10-22 08:16:05 +00:00
Route::middleware([
'auth:sanctum',
config('jetstream.auth_session'),
'verified'
])->group(function () {
Route::get('/dashboard', function () {
return view('dashboard');
})->name('dashboard');
});
2022-10-13 11:41:38 +00:00
Route::any('{uri?}',[RequestController::class,'main'])
->where('uri','.*');