feat: add api and mcp
This commit is contained in:
@@ -36,6 +36,10 @@ class ApiSettings(BaseSettings):
|
||||
port: int = 8080
|
||||
|
||||
|
||||
class AuthSettings(BaseSettings):
|
||||
token: SecretStr | None = None
|
||||
|
||||
|
||||
class StorageSettings(BaseSettings):
|
||||
root: str = "storage"
|
||||
shard_depth: int = 2
|
||||
@@ -52,6 +56,7 @@ class Settings(BaseSettings):
|
||||
db: DatabaseSettings = Field(default_factory=DatabaseSettings)
|
||||
tg: TelegramSettings = Field(default_factory=TelegramSettings)
|
||||
api: ApiSettings = Field(default_factory=ApiSettings)
|
||||
auth: AuthSettings = Field(default_factory=AuthSettings)
|
||||
storage: StorageSettings = Field(default_factory=StorageSettings)
|
||||
log: LogSettings = Field(default_factory=LogSettings)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user