22 lines
463 B
Python
22 lines
463 B
Python
|
|
from pydantic_settings import BaseSettings, SettingsConfigDict
|
||
|
|
|
||
|
|
|
||
|
|
class Settings(BaseSettings):
|
||
|
|
model_config = SettingsConfigDict(
|
||
|
|
env_file=".env",
|
||
|
|
env_file_encoding="utf-8",
|
||
|
|
extra="ignore",
|
||
|
|
)
|
||
|
|
|
||
|
|
app_name: str = "Nuzlocke Tracker API"
|
||
|
|
debug: bool = False
|
||
|
|
|
||
|
|
# API settings
|
||
|
|
api_v1_prefix: str = "/api/v1"
|
||
|
|
|
||
|
|
# Database settings (for future use)
|
||
|
|
database_url: str = "sqlite:///./nuzlocke.db"
|
||
|
|
|
||
|
|
|
||
|
|
settings = Settings()
|