Browse Source

for certbot

ming 3 years ago
parent
commit
94de77b543
1 changed files with 1 additions and 1 deletions
  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")