From e0a407acd94c6c4f2aa0a0cdce14730d07c584f4 Mon Sep 17 00:00:00 2001 From: Alex Kelly Date: Tue, 9 Nov 2021 01:41:26 -0500 Subject: [PATCH] feat: add generic formatter that will just return json sent --- matrix_webhook/formatters/generic.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 matrix_webhook/formatters/generic.py diff --git a/matrix_webhook/formatters/generic.py b/matrix_webhook/formatters/generic.py new file mode 100644 index 0000000..462a17b --- /dev/null +++ b/matrix_webhook/formatters/generic.py @@ -0,0 +1,4 @@ +def formatter(data, headers): + """Just dump the json data""" + data["body"] = f"{data}" + return data