feat build-files
route.php
: add parameters to delete & name routes
This commit is contained in:
parent
98a490c381
commit
972c60e620
1 changed files with 7 additions and 1 deletions
|
@ -1 +1,7 @@
|
||||||
Route::group(['prefix' => 'extensions/[id]'], function () {Route::get('/', [Admin\Extensions\[id]\[id]ExtensionController::class, 'index'])->name('admin.extensions.[id].index');Route::patch('/', [Admin\Extensions\[id]\[id]ExtensionController::class, 'update']);Route::post('/', [Admin\Extensions\[id]\[id]ExtensionController::class, 'post']);Route::put('/', [Admin\Extensions\[id]\[id]ExtensionController::class, 'put']);Route::delete('/', [Admin\Extensions\[id]\[id]ExtensionController::class, 'delete']);Route::options('/', [Admin\Extensions\[id]\[id]ExtensionController::class, 'options']);});
|
Route::group(['prefix' => 'extensions/[id]'], function () {
|
||||||
|
Route::get('/', [Admin\Extensions\[id]\[id]ExtensionController::class, 'index'])->name('admin.extensions.[id].index');
|
||||||
|
Route::patch('/', [Admin\Extensions\[id]\[id]ExtensionController::class, 'update'])->name('admin.extensions.[id].patch');
|
||||||
|
Route::post('/', [Admin\Extensions\[id]\[id]ExtensionController::class, 'post'])->name('admin.extensions.[id].post');
|
||||||
|
Route::put('/', [Admin\Extensions\[id]\[id]ExtensionController::class, 'put'])->name('admin.extensions.[id].put');
|
||||||
|
Route::delete('/{target}/{id}', [Admin\Extensions\[id]\[id]ExtensionController::class, 'delete'])->name('admin.extensions.[id].delete');
|
||||||
|
});
|
Loading…
Reference in a new issue