mirror of
https://github.com/anotherhadi/default-creds-web.git
synced 2026-10-05 10:58:24 +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(
|
return new Response(
|
||||||
JSON.stringify({
|
JSON.stringify({
|
||||||
results: filtered.slice(start, start + size),
|
results: filtered
|
||||||
|
.slice(start, start + size)
|
||||||
|
.map(({ searchStr: _, ...entry }) => entry),
|
||||||
pagination: {
|
pagination: {
|
||||||
totalResults,
|
totalResults,
|
||||||
totalPages,
|
totalPages,
|
||||||
|
|||||||
Reference in New Issue
Block a user