in app/app.py [0:0]
def dispatch(cls, event: EventType) -> ResponseType:
try:
status_code, body = getattr(cls, event['httpMethod'].lower())(event)
except AttributeError:
status_code, body = 405, {'message': 'METHOD NOT ALLOWED'}
return {'statusCode': status_code, 'body': json.dumps(body)}