We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9afa7e9 commit b12976fCopy full SHA for b12976f
web/server/main.py
@@ -40,19 +40,21 @@ def health() -> str:
40
return "ok"
41
42
43
-@app.get("/")
44
-def index() -> HTMLResponse:
45
- with open(WEB_DIRECTORY / "client/dist/index.html", "r", encoding="utf-8") as f:
46
- return HTMLResponse(f.read())
47
-
48
49
app.mount(
50
"/assets",
51
StaticFiles(directory=WEB_DIRECTORY / "client/dist/assets", check_dir=False),
52
name="assets",
53
)
+
54
55
"/favicons",
56
StaticFiles(directory=WEB_DIRECTORY / "client/dist/favicons", check_dir=False),
57
name="favicons",
58
+@app.get("/{full_path:path}")
+async def index(full_path: str = "") -> HTMLResponse:
59
+ with open(WEB_DIRECTORY / "client/dist/index.html", "r", encoding="utf-8") as f:
60
+ return HTMLResponse(f.read())
0 commit comments