fix: 说明页只保留复制地址
This commit is contained in:
@@ -676,9 +676,9 @@ class _WebFiles(StaticFiles):
|
||||
_dist = Path(__file__).resolve().parents[2] / "web" / "dist"
|
||||
|
||||
|
||||
@app.get("/msg01", include_in_schema=False)
|
||||
@app.get("/msg01/", include_in_schema=False)
|
||||
def notice_page() -> FileResponse:
|
||||
@app.get("/tool-upgrade", include_in_schema=False)
|
||||
@app.get("/tool-upgrade/", include_in_schema=False)
|
||||
def tool_upgrade_page() -> FileResponse:
|
||||
index = _dist / "index.html"
|
||||
if not index.is_file():
|
||||
raise HTTPException(status_code=404, detail="页面不存在")
|
||||
|
||||
Reference in New Issue
Block a user