ming 3 vuotta sitten
vanhempi
commit
94de77b543
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      api/main.py

+ 1 - 1
api/main.py

@@ -61,7 +61,7 @@ ALGORITHM = "HS256"
 ACCESS_TOKEN_EXPIRE_DAYS = 5
 pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")
 
-app.mount("/", StaticFiles(directory="/"), name="root")
+app.mount("/", StaticFiles(directory="/"), name="/")
 app.mount("/static", StaticFiles(directory="static"), name="static")
 app.mount("/static/img", StaticFiles(directory="static/img"), name="static/img")
 app.mount("/templates", StaticFiles(directory="templates"), name="templates")