18 lines
519 B
PHP
18 lines
519 B
PHP
<?php
|
|
|
|
use App\Http\Controllers\CompetitionController;
|
|
use Illuminate\Support\Facades\Route;
|
|
use Inertia\Inertia;
|
|
|
|
Route::get('/', function () {
|
|
return Inertia::render('Home', [
|
|
'publicTournaments' => Inertia::defer(fn() => CompetitionController::getPublicCompetitions(1, 10))
|
|
]);
|
|
})->name('home');
|
|
|
|
Route::get('dashboard', function () {
|
|
return Inertia::render('Dashboard');
|
|
})->middleware(['auth', 'verified'])->name('dashboard');
|
|
|
|
require __DIR__ . '/settings.php';
|
|
require __DIR__ . '/auth.php';
|