From 697308b805ba0a0f04e6479507d32f6f15f50cb5 Mon Sep 17 00:00:00 2001 From: serafettin Date: Fri, 9 Feb 2024 13:21:28 +0100 Subject: [PATCH] Update web2.js --- api/src/controllers/web2.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/src/controllers/web2.js b/api/src/controllers/web2.js index 1bd827ef..23a4b5b6 100644 --- a/api/src/controllers/web2.js +++ b/api/src/controllers/web2.js @@ -22,7 +22,7 @@ export const crawlWebPage = async (req, res, next) => { const webPageService = new WebPageService().setSession(req.session); let params = req.body; try{ - const crawlResponse = await axios.post(`${process.env.LLM_INDEXER_HOST}/crawl`, { + const crawlResponse = await axios.post(`${process.env.LLM_INDEXER_HOST}/indexer/crawl`, { url: params.url }) if (crawlResponse && crawlResponse.data && crawlResponse.data.content) { @@ -38,4 +38,3 @@ export const crawlWebPage = async (req, res, next) => { res.status(500).json({ error: error.message }); } }; -