add create device route
This commit is contained in:
@ -19,6 +19,14 @@ Route::get('/', function () {
|
||||
return view('welcome');
|
||||
});
|
||||
|
||||
// index - show all devices
|
||||
Route::get('/devices', [DeviceController::class, 'index']);
|
||||
|
||||
// create - show create form
|
||||
Route::get('/devices/create', [DeviceController::class, 'create']);
|
||||
// store - store new device
|
||||
// edit - show edit form
|
||||
// update - update device
|
||||
// destroy - delete device
|
||||
// show - show sigle device
|
||||
Route::get('/devices/{device}', [DeviceController::class, 'show']);
|
||||
|
Reference in New Issue
Block a user