This commit is contained in:
spencerrlongg 2024-07-02 15:53:28 -05:00
parent 6f29c0a7cf
commit 423b48279b

View file

@ -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',