minor
This commit is contained in:
parent
0c18cf9bf1
commit
f8feb40723
@ -1,6 +1,7 @@
|
|||||||
import json
|
import json
|
||||||
from flask import request, current_app, jsonify
|
|
||||||
from db import redis_client
|
from db import redis_client
|
||||||
|
from flask import jsonify
|
||||||
from flask_classful import FlaskView
|
from flask_classful import FlaskView
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
from flask_classful import FlaskView
|
|
||||||
from flask import request, current_app, Response
|
from flask import request, current_app, Response
|
||||||
|
from flask_classful import FlaskView
|
||||||
|
|
||||||
|
|
||||||
class LogView(FlaskView):
|
class LogView(FlaskView):
|
||||||
|
|
||||||
def post(self):
|
def post(self):
|
||||||
current_app.logger.info(f"New message: {request.json['message']}")
|
current_app.logger.info(f"New message: {request.json['message']}")
|
||||||
return Response(status=204)
|
return Response(status = 204)
|
||||||
|
Reference in New Issue
Block a user