mirror of
https://github.com/anotherhadi/default-creds.git
synced 2026-04-02 11:32:11 +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(
|
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