Show and edit marker images

This commit is contained in:
rueeggeandre committed 2026-06-01 03:41:30 +02:00
1 parent e4759b8961
commit 806aedb984
3 files changed
+174 -14

No files matched your search

+3 -2
View File
@@ -13,10 +13,11 @@ app.secret_key = "your-secret-key-here-change-in-production" # needed for sessi
CORS(app, supports_credentials=True) # allow cookies
# Directories
DATA_DIR = "data"
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
DATA_DIR = os.path.join(BASE_DIR, "data")
USERS_FILE = os.path.join(DATA_DIR, "users.json")
JOURNEYS_FILE = os.path.join(DATA_DIR, 'journeys.json')
UPLOAD_DIR = "uploads"
UPLOAD_DIR = os.path.join(BASE_DIR, "uploads")
ALLOWED_IMAGE_EXTENSIONS = {"png", "jpg", "jpeg", "gif", "webp"}
os.makedirs(DATA_DIR, exist_ok=True)
os.makedirs(UPLOAD_DIR, exist_ok=True)