Sort of working beta
This commit is contained in:
@ -1,15 +1,12 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Controllers\JobController;
|
||||
use App\Models\Job;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Inertia\Inertia;
|
||||
|
||||
Route::get('/', function () {
|
||||
return Inertia::render('Home');
|
||||
});
|
||||
})->name('home');
|
||||
|
||||
Route::get("/job/{jobId}", function ($jobId) {
|
||||
return Inertia::render('Job', [
|
||||
'job' => Job::find($jobId)
|
||||
]);
|
||||
});
|
||||
Route::resource('jobs', JobController::class)->only(['show', 'update']);
|
||||
|
Reference in New Issue
Block a user