This commit is contained in:
Waylon Walker 2023-06-08 09:02:43 -05:00
parent a9ee4a2bd8
commit d68cda91cf
No known key found for this signature in database
GPG key ID: 66E2BF2B4190EFE4
22 changed files with 824 additions and 55 deletions

View file

@ -20,6 +20,13 @@ class ApiServer(BaseModel):
host: str = "0.0.0.0"
class ApiClient(BaseModel):
host: str = "0.0.0.0"
port: int = 5000
protocol: str = "http"
url: str = f"{protocol}://{host}:{port}"
class Database:
def __init__(self, config: "Config" = None) -> None:
if config is None:
@ -48,6 +55,7 @@ class Config(BaseSettings):
env: str = "dev"
database_url: str = "sqlite:///database.db"
api_server: ApiServer = ApiServer()
api_client: ApiClient = ApiClient()
class Config:
extra = "ignore"