This commit is contained in:
parent
244b779107
commit
0c3161ef03
@ -1,10 +1,9 @@
|
|||||||
from flask_classful import FlaskView
|
from flask_classful import FlaskView
|
||||||
from flask import request, current_app, jsonify
|
from flask import request, current_app, Response
|
||||||
|
|
||||||
class LogView(FlaskView):
|
class LogView(FlaskView):
|
||||||
|
|
||||||
def get(self):
|
def get(self):
|
||||||
remote_uuid = request.json['uuid']
|
remote_uuid = request.json['uuid']
|
||||||
current_app.logger.info(f"New message from {remote_uuid}: {request.message}")
|
current_app.logger.info(f"New message from {remote_uuid}: {request.message}")
|
||||||
return 200
|
return Response(status=204)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user