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 0c3161ef03
All checks were successful
continuous-integration/drone/push Build is passing
204
2020-03-30 16:36:33 +02:00

10 lines
298 B
Python

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