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:
@@ -92,7 +92,7 @@ commands:
|
||||
permissions:
|
||||
- framework.command.test
|
||||
source: internal
|
||||
last_updated: 279407.522655496
|
||||
last_updated: 279719.562686002
|
||||
plugin_commands:
|
||||
example_plugin:
|
||||
echo: *id001
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
http_port: 4200
|
||||
last_updated: 279407.52679284
|
||||
last_updated: 279719.566351315
|
||||
plugin_routes:
|
||||
example_plugin:
|
||||
- methods:
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user