bruh....blame claude ._. wtf man
All checks were successful
Build and deploy / Build and Push Docker Images (push) Successful in 3m19s

This commit is contained in:
2025-12-15 01:04:50 +05:00
parent ebc7f9cb84
commit a4820aab18

View File

@@ -10,7 +10,8 @@ from app.models.user import User
router = APIRouter(prefix="/api/uploads", tags=["uploads"])
# Storage directory for uploaded images
STORAGE_DIR = Path("/home/shihaam/git/sarlink/mapmaker/storage/images")
# Use relative path from project root to work in both dev and production
STORAGE_DIR = Path(__file__).resolve().parent.parent.parent / "storage" / "images"
STORAGE_DIR.mkdir(parents=True, exist_ok=True)
# Allowed image types