Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥
TypeScript aiai-agentsai-crawlerai-scrapingai-searchcrawlerdata-extractionhtml-to-markdownllmmarkdownscraperscrapingweb-crawlerweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
fix(api): route the three missing /labs/search/data endpoints (#4172)
Nicolascd0ae14979a3
diff --git a/apps/api/src/routes/labs.ts b/apps/api/src/routes/labs.tsindex ecd99ee9c..5e7bb8daf 100644--- a/apps/api/src/routes/labs.ts+++ b/apps/api/src/routes/labs.ts@@ -139,6 +139,10 @@ export const labsRouter = express.Router();// No credit check or billing here on purpose: the service behind this proxy// makes its own calls to the public API with the caller's own key, so usage is// billed on those existing paths instead.+//+// This list mirrors the upstream service one route at a time; there is no+// catch-all. An endpoint added upstream stays a 404 here until it is also+// listed below, so keep the two in sync when the service grows.labsRouter.post("/search",authMiddleware(RateLimiterMode.Search),@@ -157,18 +161,36 @@ labsRouter.post(wrap(labsProxyController),);+labsRouter.post(+ "/search/data/pages",+ authMiddleware(RateLimiterMode.Search),+ wrap(labsProxyController),+);+labsRouter.get("/search/data",authMiddleware(RateLimiterMode.Search),wrap(labsProxyController),);+labsRouter.patch(+ "/search/data/:sourceId",+ authMiddleware(RateLimiterMode.Search),+ wrap(labsProxyController),+);+labsRouter.delete("/search/data/:sourceId",authMiddleware(RateLimiterMode.Search),wrap(labsProxyController),);+labsRouter.post(+ "/search/data/:sourceId/refresh",+ authMiddleware(RateLimiterMode.Search),+ wrap(labsProxyController),+);+labsRouter.get("/search/providers",authMiddleware(RateLimiterMode.Search),