mirror of
https://github.com/flibusta-apps/library_updater.git
synced 2025-12-06 07:45:35 +01:00
Add webhook after update
This commit is contained in:
@@ -1,4 +1,11 @@
|
||||
from pydantic import BaseSettings
|
||||
from typing import Optional, Union, Literal
|
||||
from pydantic import BaseModel, BaseSettings
|
||||
|
||||
|
||||
class WebhookConfig(BaseModel):
|
||||
method: Union[Literal['get'], Literal['post']]
|
||||
url: str
|
||||
headers: dict[str, str]
|
||||
|
||||
|
||||
class EnvConfig(BaseSettings):
|
||||
@@ -18,5 +25,7 @@ class EnvConfig(BaseSettings):
|
||||
|
||||
FL_BASE_URL: str
|
||||
|
||||
WEBHOOKS: Optional[list[WebhookConfig]]
|
||||
|
||||
|
||||
env_config = EnvConfig()
|
||||
|
||||
Reference in New Issue
Block a user