Add user authentication with login/signup/protected routes, boss pokemon detail fields and result team tracking, moves and abilities selector components and API, run ownership and visibility controls, and various UI improvements across encounters, run list, and journal pages. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
27 lines
634 B
Python
27 lines
634 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 = "Another Nuzlocke Tracker API"
|
|
debug: bool = False
|
|
|
|
# API settings
|
|
api_v1_prefix: str = "/api/v1"
|
|
|
|
# Database settings
|
|
database_url: str = "postgresql+asyncpg://postgres:postgres@localhost:5432/nuzlocke"
|
|
|
|
# Supabase Auth
|
|
supabase_url: str | None = None
|
|
supabase_anon_key: str | None = None
|
|
supabase_jwt_secret: str | None = None
|
|
|
|
|
|
settings = Settings()
|