Adds delete endpoint for licenses

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2022-02-16 09:08:50 -08:00
parent 5582949008
commit 1ad56760ce

View file

@ -82,6 +82,10 @@ class LicensesController extends Controller
$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
// case we override with the actual count, so we should return 0 items.