Add an endpoint for deleting a file
This commit is contained in:
parent
bbb9145744
commit
f6a1a76095
1 changed files with 7 additions and 0 deletions
|
@ -565,6 +565,13 @@ Route::group(['prefix' => 'v1', 'middleware' => ['api', 'throttle:api']], functi
|
||||||
]
|
]
|
||||||
)->name('api.assets.files');
|
)->name('api.assets.files');
|
||||||
|
|
||||||
|
Route::delete('{asset_id}/file/{file_id}',
|
||||||
|
[
|
||||||
|
Api\AssetFilesController::class,
|
||||||
|
'destroy'
|
||||||
|
]
|
||||||
|
)->name('api.assets.files');
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
Route::resource('hardware',
|
Route::resource('hardware',
|
||||||
|
|
Loading…
Add table
Reference in a new issue