Upload files to "backend"

This commit is contained in:
Thierry 2026-03-26 11:40:26 +01:00
parent 7779eb279b
commit 1ba1339e73
3 changed files with 93 additions and 0 deletions

11
backend/config.py Normal file
View file

@ -0,0 +1,11 @@
from pathlib import Path
BASE_DIR = Path(__file__).resolve().parent
DATA_DIR = BASE_DIR / "data"
UPLOADS_DIR = DATA_DIR / "uploads"
EPT_DIR = DATA_DIR / "ept" # était POTREE_DIR
UPLOADS_DIR.mkdir(parents=True, exist_ok=True)
EPT_DIR.mkdir(parents=True, exist_ok=True)
SUPPORTED_FORMATS = [".las", ".laz", ".ply", ".xyz", ".pts"]