feat: redirect / to /dashboard
Some checks are pending
Build & Push Docker Image / build-and-push (push) Waiting to run
Tests / test (push) Waiting to run

This commit is contained in:
P0luz
2026-04-21 20:53:34 +08:00
parent 529c9cc172
commit 3aae7582fb

View File

@@ -296,6 +296,12 @@ async def auth_change_password(request):
# For Cloudflare Tunnel or reverse proxy to ping, preventing idle timeout
# 供 Cloudflare Tunnel 或反代定期 ping防止空闲超时断连
# =============================================================
@mcp.custom_route("/", methods=["GET"])
async def root_redirect(request):
from starlette.responses import RedirectResponse
return RedirectResponse(url="/dashboard")
@mcp.custom_route("/health", methods=["GET"])
async def health_check(request):
from starlette.responses import JSONResponse