feat: add create feature (needs some more work tho)
This commit is contained in:
parent
ef6dadb148
commit
1485f3daf5
5 changed files with 413 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
<?php
|
||||
|
||||
use App\Http\Controllers\CompetitionController;
|
||||
use App\Http\Controllers\TournamentController;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Inertia\Inertia;
|
||||
|
@ -22,5 +23,15 @@ Route::get('dashboard', function () {
|
|||
return Inertia::render('Dashboard');
|
||||
})->middleware(['auth', 'verified'])->name('dashboard');
|
||||
|
||||
// Tournament routes
|
||||
Route::middleware(['auth', 'verified'])->group(function () {
|
||||
Route::get('tournaments/create', [TournamentController::class, 'create'])->name('tournaments.create');
|
||||
Route::post('tournaments', [TournamentController::class, 'store'])->name('tournaments.store');
|
||||
Route::get('tournaments/{tournament}', [TournamentController::class, 'show'])->name('tournaments.show');
|
||||
Route::get('tournaments/{tournament}/edit', [TournamentController::class, 'edit'])->name('tournaments.edit');
|
||||
Route::put('tournaments/{tournament}', [TournamentController::class, 'update'])->name('tournaments.update');
|
||||
Route::delete('tournaments/{tournament}', [TournamentController::class, 'destroy'])->name('tournaments.destroy');
|
||||
});
|
||||
|
||||
require __DIR__ . '/settings.php';
|
||||
require __DIR__ . '/auth.php';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue