mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-06 05:39:12 +00:00
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:
@@ -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];
|
||||
|
||||
@@ -103,7 +103,7 @@ def configure_routes(app):
|
||||
app.mount("/static", StaticFiles(directory=constants.web_directory), name="static")
|
||||
app.include_router(api, prefix="/api")
|
||||
app.include_router(api_beta, prefix="/api/beta")
|
||||
app.include_router(indexer, prefix="/v1/indexer")
|
||||
app.include_router(indexer, prefix="/api/v1/indexer")
|
||||
app.include_router(web_client)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user