Update indexer API endpoint URL to index/update from indexer/batch

New URL follows action oriented endpoint naming convention used for
other Khoj API endpoints

Update desktop, obsidian and emacs client to call this new API
endpoint
This commit is contained in:
Debanjum Singh Solanky
2023-10-17 04:30:27 -07:00
parent e347823ff4
commit 84654ffc5d
6 changed files with 10 additions and 10 deletions

View File

@@ -163,7 +163,7 @@ function pushDataToKhoj (regenerate = false) {
const headers = {
'x-api-key': 'secret'
};
axios.post(`${hostURL}/api/v1/indexer/batch?regenerate=${regenerate}`, formData, { headers })
axios.post(`${hostURL}/api/v1/index/update?regenerate=${regenerate}`, formData, { headers })
.then(response => {
console.log(response.data);
const win = BrowserWindow.getAllWindows()[0];