mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-24 07:39:41 +02:00
* refactor(backend): ♻️ Refactor base class to be abstract and create a router factory method * feat(frontend): ✨ add group edit * refactor(backend): ✨ add group edit support Co-authored-by: hay-kot <hay-kot@pm.me>
19 lines
305 B
Python
19 lines
305 B
Python
from fastapi_camelcase import CamelModel
|
|
|
|
|
|
class CreateWebhook(CamelModel):
|
|
enabled: bool = True
|
|
name: str = ""
|
|
url: str = ""
|
|
time: str = "00:00"
|
|
|
|
|
|
class SaveWebhook(CreateWebhook):
|
|
group_id: int
|
|
|
|
|
|
class ReadWebhook(SaveWebhook):
|
|
id: int
|
|
|
|
class Config:
|
|
orm_mode = True
|