Skip to content

Commit

Permalink
refactor(chat): remove unused changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcMcIntosh authored and mitya52 committed Jan 18, 2024
1 parent 326dddc commit e44956f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion self_hosting_machinery/webgui/selfhost_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ def __init__(self):
{"label": "Server Logs", "tab": "server-logs"},
{"label": "Stats", "tab": "stats"},
{"label": "Credentials", "tab": "settings", "hamburger": True},
## Add chat tab here
{"label": "Chat", "tab": "chat"}
]
self.add_api_route("/list-plugins", self._list_plugins, methods=["GET"])
Expand Down
3 changes: 0 additions & 3 deletions self_hosting_machinery/webgui/selfhost_static.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,10 @@ async def _index(self):
async def _static_file(self, file_path: str):
if ".." in file_path:
raise HTTPException(404, "Path \"%s\" not found" % file_path)

for spath in self.static_folders:
fn = os.path.join(spath, file_path)
if os.path.exists(fn):
return FileResponse(fn)
elif os.path.exists(fn + ".html"):
return FileResponse(fn + ".html", media_type="text/html")
raise HTTPException(404, "Path \"%s\" not found" % file_path)

async def _ping_handler(self):
Expand Down

0 comments on commit e44956f

Please sign in to comment.