Compare commits
1 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
297fe13a5e |
|
|
@ -0,0 +1,18 @@
|
|||
from pydantic_settings import BaseSettings
|
||||
from functools import lru_cache
|
||||
|
||||
class Settings(BaseSettings):
|
||||
# CORS
|
||||
cors_origins: str = "http://localhost:5173"
|
||||
|
||||
# Autres configurations futures
|
||||
app_name: str = "Dough Calculator"
|
||||
debug: bool = False
|
||||
|
||||
class Config:
|
||||
env_file = ".env"
|
||||
env_file_encoding = "utf-8"
|
||||
|
||||
@lru_cache()
|
||||
def get_settings() -> Settings:
|
||||
return Settings()
|
||||
Loading…
Reference in New Issue