Put indexer API endpoint under /api path segment

Update FastAPI app router, desktop app and to use new url path to
batch indexer API endpoint

All api endpoints should exist under /api path segment
This commit is contained in:
Debanjum Singh Solanky
2023-10-09 21:35:58 -07:00
parent 148e8f468f
commit 6aa69da3ef
3 changed files with 5 additions and 5 deletions

View File

@@ -169,7 +169,7 @@ function pushDataToKhoj (regenerate = false) {
const hostURL = store.get('hostURL') || KHOJ_URL;
axios.post(`${hostURL}/v1/indexer/batch?regenerate=${regenerate}`, stream, { headers })
axios.post(`${hostURL}/api/v1/indexer/batch?regenerate=${regenerate}`, stream, { headers })
.then(response => {
console.log(response.data);
const win = BrowserWindow.getAllWindows()[0];