Skip to content

Commit

Permalink
Update web2.js
Browse files Browse the repository at this point in the history
  • Loading branch information
serefyarar committed Feb 9, 2024
1 parent 39b4baf commit 697308b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api/src/controllers/web2.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -38,4 +38,3 @@ export const crawlWebPage = async (req, res, next) => {
res.status(500).json({ error: error.message });
}
};

0 comments on commit 697308b

Please sign in to comment.