From 0c18cf9bf1552afb0c1c43b938aeae0ba8366799 Mon Sep 17 00:00:00 2001 From: Fabian Date: Mon, 30 Mar 2020 16:56:29 +0200 Subject: [PATCH] message --- consumer_api/views/log_view.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/consumer_api/views/log_view.py b/consumer_api/views/log_view.py index 808c98e..c63e682 100644 --- a/consumer_api/views/log_view.py +++ b/consumer_api/views/log_view.py @@ -3,6 +3,6 @@ from flask import request, current_app, Response class LogView(FlaskView): - def get(self): - current_app.logger.info(f"New message from: {request.json['message']}") + def post(self): + current_app.logger.info(f"New message: {request.json['message']}") return Response(status=204)