This repository has been archived on 2020-09-24. You can view files and clone it, but cannot push or open issues or pull requests.
consumer-api/consumer_api/views/log_view.py
Fabian f8feb40723
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
minor
2020-03-30 17:00:59 +02:00

10 lines
248 B
Python

from flask import request, current_app, Response
from flask_classful import FlaskView
class LogView(FlaskView):
def post(self):
current_app.logger.info(f"New message: {request.json['message']}")
return Response(status = 204)