added public redirect

parent 0764a323
Showing with 5 additions and 1 deletions
......@@ -28,7 +28,11 @@ app.add_middleware(
# Redirect root URL to the public index.html
@app.get("/")
async def redirect_typer():
async def redirect_root():
return RedirectResponse("/public/index.html")
@app.get("/public/")
async def redirect_public():
return RedirectResponse("/public/index.html")
# User CRUD Operations
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment