Skip to content

Commit

Permalink
Merge pull request #147 from arayabrain/fix-404-error-when-reload-page
Browse files Browse the repository at this point in the history
Fix 404 error when reload page
  • Loading branch information
itutu-tienday authored Sep 5, 2023
2 parents 2bf7a4f + c15fb60 commit 59d6348
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions studio/__main_unit__.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ async def root(request: Request):
return templates.TemplateResponse("index.html", {"request": request})


@app.get("/{_:path}")
async def index(request: Request):
return await root(request)


def main(develop_mode: bool = False):
parser = argparse.ArgumentParser()
parser.add_argument("--host", type=str, default="127.0.0.1")
Expand Down

0 comments on commit 59d6348

Please sign in to comment.