mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
break settings.py into classes
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user