mirror of
https://github.com/anotherhadi/default-creds.git
synced 2026-10-05 18:28:25 +02:00
strip searchStr from the api anwser
Signed-off-by: Hadi <[email protected]>
This commit is contained in:
@@ -113,7 +113,9 @@ export const GET: APIRoute = async ({ url }) => {
|
||||
|
||||
return new Response(
|
||||
JSON.stringify({
|
||||
results: filtered.slice(start, start + size),
|
||||
results: filtered
|
||||
.slice(start, start + size)
|
||||
.map(({ searchStr: _, ...entry }) => entry),
|
||||
pagination: {
|
||||
totalResults,
|
||||
totalPages,
|
||||
|
||||
Reference in New Issue
Block a user