Browse Source

img path(相對)

Mia Cheng 1 năm trước cách đây
mục cha
commit
15ea7e953b
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      app/api/classes.py

+ 2 - 1
app/api/classes.py

@@ -23,7 +23,8 @@ from tortoise.queryset import Q
 
 classes = APIRouter()
 
-IMAGEDIR = "/var/www/html/ntcri/assets/"
+#IMAGEDIR = "/var/www/html/ntcri/assets/"
+IMAGEDIR = "assets/"
 
 # SECRET: str = secrets.token_urlsafe(32)
 # manager = LoginManager(SECRET, '/login',default_expiry=timedelta(hours=72))