in app/app.py [0:0]
def dispatch_request(event: EventType, context: ContextType) -> ResponseType:
request_path = event['requestContext']['resourcePath']
if request_path not in PATHS:
return {'statusCode': 404, 'body': json.dumps({'message': 'NOT FOUND'})}
return PATHS[request_path].dispatch(event)