From e985ceefdc7e2bb0572b892f9a251ecd07dd6df1 Mon Sep 17 00:00:00 2001 From: db0 Date: Fri, 23 Jun 2023 16:35:32 +0200 Subject: [PATCH] inbox --- overseer/routes.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/overseer/routes.py b/overseer/routes.py index 8a59d12..6ce4c9f 100644 --- a/overseer/routes.py +++ b/overseer/routes.py @@ -51,4 +51,14 @@ def wellknown_redirect(): } ] } - return webfinger,200 \ No newline at end of file + return webfinger,200 + +@logger.catch(reraise=True) +@OVERSEER.route('/inbox', methods=['POST']) +def inbox(): + query_string = request.query_string.decode() + print(query_string) + # Access the JSON payload + json_payload = request.get_json() + print(json_payload) + return 'ok', 200