feat: webhook event-model und shared-secret auth

This commit is contained in:
2026-05-04 22:28:10 +02:00
parent a861f4ec2b
commit 81f6201cfc
3 changed files with 57 additions and 0 deletions

14
app/webhook/models.py Normal file
View File

@@ -0,0 +1,14 @@
from enum import Enum
from pydantic import BaseModel
class EventType(str, Enum):
CREATED = "created"
UPDATED = "updated"
DELETED = "deleted"
class NextcloudEvent(BaseModel):
event_type: EventType
file_path: str
file_name: str