dev-fabian #2

Merged
marcsello merged 7 commits from dev-fabian into dev 2020-03-30 17:18:54 +02:00
Showing only changes of commit 0c3161ef03 - Show all commits

View File

@ -1,10 +1,9 @@
from flask_classful import FlaskView
from flask import request, current_app, jsonify
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 200
return Response(status=204)