break settings.py into classes

This commit is contained in:
geoffrey45
2023-03-26 08:25:00 +03:00
parent 79029ae346
commit 357afeb700
22 changed files with 102 additions and 96 deletions
+2 -2
View File
@@ -2,12 +2,12 @@ from pathlib import Path
from flask import Blueprint, send_from_directory
from app.settings import APP_DIR
from app.settings import Paths
api = Blueprint("imgserver", __name__, url_prefix="/img")
SUPPORTED_IMAGES = (".jpg", ".png", ".webp", ".jpeg")
APP_DIR = Path(APP_DIR)
APP_DIR = Path(Paths.APP_DIR)
IMG_PATH = APP_DIR / "images"
ASSETS_PATH = APP_DIR / "assets"