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

This commit is contained in:
Füleki Fábián 2020-03-30 16:56:29 +02:00
parent 68e2eaffcb
commit 0c18cf9bf1

View File

@ -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)