diff --git a/searxng_tester.mts b/searxng_tester.mts deleted file mode 100644 index a5553a3..0000000 --- a/searxng_tester.mts +++ /dev/null @@ -1,29 +0,0 @@ -import { SearxngService, type SearxngServiceConfig, type SearxngSearchResult } from 'searxng'; - -const config: SearxngServiceConfig = { - baseURL: 'https://search-engine-gsio.fly.dev', - defaultSearchParams: { - format: 'json', - lang: 'auto', - }, - defaultRequestHeaders: { - 'Content-Type': 'application/json', - }, -}; - -const searxngService = new SearxngService(config); - -async function performSearch(query) { - try { - const results = await searxngService.search(query); - console.log(results); - return results; - } catch (error) { - console.error('Search failed:', error); - } -} - - -const results = await performSearch('dogs'); - -console.log(JSON.stringify(results)); \ No newline at end of file diff --git a/src/routes.rs b/src/routes.rs index b6dc988..8610692 100644 --- a/src/routes.rs +++ b/src/routes.rs @@ -47,7 +47,7 @@ pub fn create_router() -> Router { .route("/api/webhooks", post(handle_webhooks_post)) // consume a stream resource .route("/webhooks/:stream_id", get(handle_webhooks)) - .route_layer(axum::middleware::from_fn(auth)) + // .route_layer(axum::middleware::from_fn(auth)) // uncomment to implement your own auth .route("/health", get(health)) .layer( TraceLayer::new_for_http()