[feat] add fastapi adapter
This commit is contained in:
parent
05543bbbbb
commit
a930185754
12 changed files with 220 additions and 16 deletions
|
|
@ -59,13 +59,6 @@ def load_config(
|
|||
env_values,
|
||||
'APP_HTTP_PORT',
|
||||
),
|
||||
api_prefix=_yaml_or_env_str(
|
||||
http_section,
|
||||
'api_prefix',
|
||||
'http.api_prefix',
|
||||
env_values,
|
||||
'APP_HTTP_API_PREFIX',
|
||||
),
|
||||
),
|
||||
logging=LoggingConfig(
|
||||
level=_yaml_or_env_str(
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ class AppSectionConfig:
|
|||
class HttpConfig:
|
||||
host: str
|
||||
port: int
|
||||
api_prefix: str
|
||||
|
||||
|
||||
@dataclass(frozen=True, slots=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue