strip searchStr from the api anwser

Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
Hadi
2026-03-07 17:56:08 +01:00
parent 48afde8d91
commit 9b8ce076bf

View File

@@ -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,