Implement functional, unstyled chat page for khoj web interface

Expose it at /chat URL
This commit is contained in:
Debanjum Singh Solanky
2023-01-12 18:10:53 -03:00
parent f0213d0a82
commit de6c146290
2 changed files with 117 additions and 0 deletions

View File

@@ -21,3 +21,7 @@ def index():
@web_client.get('/config', response_class=HTMLResponse)
def config_page(request: Request):
return templates.TemplateResponse("config.html", context={'request': request})
@web_client.get("/chat", response_class=FileResponse)
def chat_page():
return FileResponse(constants.web_directory / "chat.html")