Beispiel #1
0
 def json_upload_form(
         *,
         table: str = Form(...),
         action: str = Form(...),
         content: str = Form(...),
         secret: str = Form(...),
 ):
     new_event = EventModel(table, action, content, secret)
     return handler.handle(new_event)
Beispiel #2
0
 def json_upload_raw(*, request: JsonRequestModel):
     new_event = EventModel(request.table, request.action, request.content,
                            request.secret)
     return handler.handle(new_event)