Fix login redirect: add /SenSu/index.html route, restart picks up new app.js

- /SenSu/index.html now serves login page (was 404 after cookie expiry)
- Fresh restart with latest page loader + inline script execution
- All routes verified: 200 OK
This commit is contained in:
qinglong
2026-06-11 14:47:37 +08:00
parent c07cea4ff7
commit fd0a97fec5
3 changed files with 3 additions and 2 deletions
+1
View File
@@ -52,6 +52,7 @@ class WebPanelManager:
# 注册首页 (登录页)
app.router.add_get(self.base_path, self._redirect_slash)
app.router.add_get(f'{self.base_path}/', self._serve_index)
app.router.add_get(f'{self.base_path}/index.html', self._serve_index)
# 🟢 新增: 注册面板主页 (/SenSu/home.html -> home.html)
app.router.add_get(f'{self.base_path}/home.html', self._serve_home)