ming 3 anos atrás
pai
commit
cb0750504e
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      api/main.py

+ 1 - 1
api/main.py

@@ -109,7 +109,7 @@ def protected(request: Request, Authorize: AuthJWT = Depends()):
 
 # login & register page
 @app.get("/login", response_class=HTMLResponse)
-async def get_login_and_register_page(request: Request,name_hash):
+async def get_login_and_register_page(request: Request,name_hash:Optional[str]):
     print(name_hash)
     return templates.TemplateResponse("login.html", {"request": request})