mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 13:44:06 -08:00
Adds delete endpoint for licenses
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
5582949008
commit
1ad56760ce
|
@ -82,6 +82,10 @@ class LicensesController extends Controller
|
||||||
$licenses = $licenses->TextSearch($request->input('search'));
|
$licenses = $licenses->TextSearch($request->input('search'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($request->filled('deleted')) {
|
||||||
|
$licenses->onlyTrashed();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Set the offset to the API call's offset, unless the offset is higher than the actual count of items in which
|
// Set the offset to the API call's offset, unless the offset is higher than the actual count of items in which
|
||||||
// case we override with the actual count, so we should return 0 items.
|
// case we override with the actual count, so we should return 0 items.
|
||||||
|
|
Loading…
Reference in a new issue