e60489715a
Client endpoint - GET & POST implemented
23 lines
453 B
Python
23 lines
453 B
Python
from pydantic import (
|
|
MySQLDsn
|
|
)
|
|
from pydantic_settings import BaseSettings, SettingsConfigDict
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
"""
|
|
"""
|
|
database_uri: MySQLDsn
|
|
environment: str
|
|
project_name: str
|
|
|
|
model_config = SettingsConfigDict(
|
|
# One level above ./backend
|
|
env_file='../.env',
|
|
env_ignore_empty=True,
|
|
extra='ignore'
|
|
)
|
|
api_v1_str: str = "/api/v1"
|
|
|
|
settings = Settings() # type: ignore
|