Skip to content

Commit 27f6cd1

Browse files
committed
avoid route rule conflict with _idom
1 parent 0347b8a commit 27f6cd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
here = Path(__file__).parent
1313

1414
app = Sanic(__name__)
15-
app.static("/", str(here / "build"))
15+
app.static("/docs", str(here / "build"))
1616

1717

1818
@app.route("/")
1919
async def forward_to_index(request):
20-
return response.redirect("/index.html")
20+
return response.redirect("/docs/index.html")
2121

2222

2323
mount, component = multiview()

0 commit comments

Comments
 (0)