10 lines
284 B
Python
10 lines
284 B
Python
from flask_classful import FlaskView
|
|
from flask import request, current_app, jsonify
|
|
|
|
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
|
|
|