Fix: remove stray character in elements.py
This commit is contained in:
parent
5cb6f1403b
commit
464ec5894c
2 changed files with 15 additions and 1 deletions
|
|
@ -67,4 +67,3 @@ async def get_element(element_id: UUID, db: AsyncSession = Depends(get_db)):
|
|||
raise HTTPException(status_code=404, detail="Element not found")
|
||||
|
||||
return element
|
||||
i
|
||||
|
|
|
|||
15
backend/app/config.py
Normal file
15
backend/app/config.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
"""Application configuration via environment variables."""
|
||||
|
||||
from pydantic_settings import BaseSettings
|
||||
|
||||
|
||||
class Settings(BaseSettings):
|
||||
database_url: str = "postgresql+asyncpg://bim:bim@localhost:5432/bim"
|
||||
upload_dir: str = "/data/uploads"
|
||||
max_upload_size_mb: int = 100
|
||||
|
||||
model_config = {"env_file": ".env"}
|
||||
|
||||
|
||||
settings = Settings()
|
||||
|
||||
Loading…
Add table
Reference in a new issue