Chat View and Sidebar chat list

This commit is contained in:
Shivering Ocelot committed 2025-07-09 22:16:38 -05:00
1 parent 5b59d3df75
commit 73fe8a95d4
7 files changed
+350 -39

No files matched your search

+10
View File
@@ -29,6 +29,16 @@ def start_server(app):
async def index():
return await send_from_directory(server.static_folder, 'index.html')
# These paths must match the routes in the frontend SPA
# file: frontend/src/routes/index.js
@server.route('/chat')
@server.route('/agent')
@server.route('/chat/<path:subpath>')
@server.route('/agent/<path:subpath>')
async def serve_spa_routes(subpath=None):
# Ignore subpath and render index, Vue router will take care of everything
return await send_from_directory(server.static_folder, 'index.html')
@server.route('/<path:path>')
async def serve_static(path):
return await send_from_directory(server.static_folder, path)