mirror of
https://github.com/anotherhadi/default-creds.git
synced 2026-04-02 03:22:10 +02:00
strip searchStr from the api anwser
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
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