mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-03 13:19:16 +00:00
Split Configure API into Content, Model API paths (#857)
## Major: Breaking Changes - Move API endpoints under /configure/<type>/model to /api/model/<type> - Move API endpoints under /api/configure/content/ to /api/content/ - Accept file deletion requests by clients during sync - Split /api/v1/index/update into /api/content PUT, PATCH API endpoints ## Minor: Create New API Endpoint - Create API endpoints to get user content configurations Related: #852
This commit is contained in:
@@ -277,8 +277,8 @@ export function uploadDataForIndexing(
|
||||
// Wait for all files to be read before making the fetch request
|
||||
Promise.all(fileReadPromises)
|
||||
.then(() => {
|
||||
return fetch("/api/v1/index/update?force=false&client=web", {
|
||||
method: "POST",
|
||||
return fetch("/api/content?client=web", {
|
||||
method: "PATCH",
|
||||
body: formData,
|
||||
});
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user