A free open source IT asset/license management system
merge
spencerrlongg423b48279b4b
diff --git a/routes/api.php b/routes/api.phpindex dc9c74a175..f18aa41c33 100644--- a/routes/api.php+++ b/routes/api.php@@ -543,19 +543,19 @@ Route::group(['prefix' => 'v1', 'middleware' => ['api', 'throttle:api']], functi'restore'])->name('api.assets.restore');- Route::post('{asset_id}/files',- [- Api\AssetFilesController::class,- 'store'- ]- )->name('api.assets.files');+ Route::post('{asset_id}/files',+ [+ Api\AssetFilesController::class,+ 'store'+ ]+ )->name('api.assets.files');- Route::get('{asset_id}/files',- [- Api\AssetFilesController::class,- 'list'- ]- )->name('api.assets.files');+ Route::get('{asset_id}/files',+ [+ Api\AssetFilesController::class,+ 'list'+ ]+ )->name('api.assets.files');Route::get('{asset_id}/file/{file_id}',[@@ -578,7 +578,7 @@ Route::group(['prefix' => 'v1', 'middleware' => ['api', 'throttle:api']], functi// the model name to be the parameter - and i think it's a good differentiation in the code while we convert the others.Route::patch('/hardware/{asset}', [Api\AssetsController::class, 'update'])->name('api.assets.update');- Route::resource('hardware',+ Route::resource('hardware',Api\AssetsController::class,['names' => ['index' => 'api.assets.index',