mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-24 16:12:23 +03:00
Cherry-picked the three value commits onto the current tip, dropping the stale base-red sync commits. Focused tests: search-blocked-providers-11100 + search-registry/searxng-loopback/chat-guard/x-search suites 65/65. Fixes #11100 (endpoint half) — GET /v1/search now honors blockedProviders via getAllSearchProviders. Thank you @rqzbeh!
This commit is contained in:
@@ -58,9 +58,7 @@ export async function OPTIONS() {
|
||||
export async function GET() {
|
||||
const settings = await getSettings().catch(() => ({} as any));
|
||||
const blockedProviders = settings?.blockedProviders || [];
|
||||
const providers = getAllSearchProviders().filter(
|
||||
(p) => !isProviderBlockedByIdOrAlias(p.id, blockedProviders)
|
||||
);
|
||||
const providers = getAllSearchProviders(blockedProviders);
|
||||
const timestamp = Math.floor(Date.now() / 1000);
|
||||
|
||||
const data = providers.map((p) => ({
|
||||
|
||||
Reference in New Issue
Block a user