fix(api): fix http respons and bad way
This commit is contained in:
1 parent
13fcc233ff
commit
0dc9034f19
4 files changed
+9
-6
No files matched your search
+1
-1
@@ -5,7 +5,7 @@ from flask import Blueprint
|
||||
# Создаем blueprint для API
|
||||
api_email = Blueprint('api_email', __name__, url_prefix='/email')
|
||||
|
||||
@api_email.route('/', methods=['POST'])
|
||||
@api_email.route('/', methods=['POST'], strict_slashes=False)
|
||||
def post_email():
|
||||
if not request.is_json:
|
||||
return jsonify({"error": "Content-Type must be application/json"}), 400
|
||||
|
||||
Reference in new issue
Block a user