Add a dummy POST config endpoint, integrate with editable UI

This commit is contained in:
Saba
2021-11-27 20:36:03 -05:00
parent f3b03ea5b7
commit 9a0264b7fc
2 changed files with 16 additions and 26 deletions

View File

@@ -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):