comments added
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-04-04 13:53:26 +02:00
parent 2376c1355d
commit 60c6698495
3 changed files with 13 additions and 6 deletions

View File

@@ -5,5 +5,8 @@ from flask_classful import FlaskView
class LogView(FlaskView):
def post(self):
# display received message
current_app.logger.info(f"New message: {request.json['message']}")
# return HTTP 204 - No content message
return Response(status = 204)