mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-05 13:21:18 +00:00
Add a dummy POST config endpoint, integrate with editable UI
This commit is contained in:
@@ -37,10 +37,9 @@ def config():
|
||||
return config
|
||||
|
||||
@app.post('/config')
|
||||
def config():
|
||||
print("hello posted config")
|
||||
print(config)
|
||||
return config
|
||||
async def config(updated_config: Request):
|
||||
data = await updated_config.json()
|
||||
return data
|
||||
|
||||
@app.get('/search')
|
||||
def search(q: str, n: Optional[int] = 5, t: Optional[SearchType] = None):
|
||||
|
||||
Reference in New Issue
Block a user