mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 13:57:41 -08:00
Added restore endpoints for manufacturers and asset models API
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
0d29ac9856
commit
2972c31a11
|
@ -706,6 +706,13 @@ Route::group(['prefix' => 'v1', 'middleware' => ['api', 'throttle:api']], functi
|
|||
]
|
||||
)->name('api.manufacturers.selectlist');
|
||||
|
||||
Route::post('{id}/restore',
|
||||
[
|
||||
Api\ManufacturersController::class,
|
||||
'restore'
|
||||
]
|
||||
)->name('api.manufacturers.restore');
|
||||
|
||||
});
|
||||
|
||||
Route::resource('manufacturers',
|
||||
|
@ -742,6 +749,13 @@ Route::group(['prefix' => 'v1', 'middleware' => ['api', 'throttle:api']], functi
|
|||
]
|
||||
)->name('api.models.assets');
|
||||
|
||||
Route::post('{id}/restore',
|
||||
[
|
||||
Api\AssetModelsController::class,
|
||||
'restore'
|
||||
]
|
||||
)->name('api.models.restore');
|
||||
|
||||
});
|
||||
|
||||
Route::resource('models',
|
||||
|
|
Loading…
Reference in a new issue