ming %!s(int64=3) %!d(string=hai) anos
pai
achega
cb0750504e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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})