mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Added DELETE for destroy method
This commit is contained in:
parent
fddcc0fefd
commit
8f2019c62e
|
@ -19,7 +19,9 @@ use App\Models\Statuslabel;
|
|||
Route::group(['prefix' => 'v1'], function () {
|
||||
|
||||
/*---Hardware API---*/
|
||||
Route::post('assets/import', [ 'as' => 'api.hardware.importFile', 'uses'=> 'AssetsController@postAPIImportUpload']);
|
||||
Route::post('hardware/import', [ 'as' => 'api.assets.importFile', 'uses'=> 'AssetsController@postAPIImportUpload']);
|
||||
|
||||
Route::match(['DELETE'], 'hardware/{id}', ['uses' => '\App\Http\Controllers\Api\AssetsController@destroy','as' => 'api.assets.destroy']);
|
||||
|
||||
|
||||
Route::resource('hardware', '\App\Http\Controllers\Api\AssetsController',
|
||||
|
@ -38,6 +40,8 @@ Route::group(['prefix' => 'v1'], function () {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
/*---Status Label API---*/
|
||||
Route::group([ 'prefix' => 'statuslabels' ,'middleware' => ['authorize:admin']], function () {
|
||||
|
||||
|
|
Loading…
Reference in a new issue