37 lines
954 B
PHP
37 lines
954 B
PHP
<?php
|
|
|
|
use App\Models\Clip;
|
|
use Illuminate\Foundation\Application;
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Support\Facades\Route;
|
|
use Inertia\Inertia;
|
|
|
|
Route::get('/', function () {
|
|
return Inertia::render('Welcome', [
|
|
'canLogin' => Route::has('login'),
|
|
'canRegister' => Route::has('register'),
|
|
'laravelVersion' => Application::VERSION,
|
|
'phpVersion' => PHP_VERSION,
|
|
]);
|
|
});
|
|
|
|
Route::middleware([
|
|
'auth:sanctum',
|
|
config('jetstream.auth_session'),
|
|
'verified',
|
|
])->group(function () {
|
|
Route::get('/dashboard', function () {
|
|
return Inertia::render('Dashboard');
|
|
})->name('dashboard');
|
|
|
|
Route::get('/videos', function () {
|
|
return Inertia::render('Videos');
|
|
})->name('videos');
|
|
|
|
Route::get('/clips', function (Request $request) {
|
|
return Inertia::render('Clips', [
|
|
'video_id' => $request->get('video_id', null),
|
|
]);
|
|
})->name('clips');
|
|
});
|