fix(api): fix http respons and bad way

This commit is contained in:
Black_Raven committed 2026-04-06 21:04:25 +03:00
1 parent 13fcc233ff
commit 0dc9034f19
4 files changed
+9 -6

No files matched your search

+1 -1
View File
@@ -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