Skip to content

Commit 1464fc1

Browse files
committed
fixed home page loading issue
1 parent b8118ff commit 1464fc1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

markopolis/app.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,8 @@ async def get_note_html(
189189

190190
@app.get("/{path:path}", response_class=HTMLResponse)
191191
async def load_page(request: Request, path: str):
192+
if path == "":
193+
path = "home"
192194
_cond = (
193195
path.endswith(".png")
194196
or path.endswith(".jpg")

0 commit comments

Comments
 (0)