First release #3

Manually merged
marcsello merged 12 commits from dev into master 2020-04-01 01:52:15 +02:00
2 changed files with 5 additions and 3 deletions
Showing only changes of commit f8feb40723 - Show all commits

View File

@ -1,6 +1,7 @@
import json
from flask import request, current_app, jsonify
from db import redis_client
from flask import jsonify
from flask_classful import FlaskView

View File

@ -1,8 +1,9 @@
from flask_classful import FlaskView
from flask import request, current_app, Response
from flask_classful import FlaskView
class LogView(FlaskView):
def post(self):
current_app.logger.info(f"New message: {request.json['message']}")
return Response(status=204)
return Response(status = 204)