middle json

This commit is contained in:
CHIEFSOFT\ameye
2025-08-27 19:06:58 -04:00
parent 95f4903647
commit 9c75cb3561
+4 -4
View File
@@ -30,10 +30,10 @@ import requests
api = Blueprint("api", __name__) api = Blueprint("api", __name__)
@api.before_request # @api.before_request
def cors_middleware(): # def cors_middleware():
"""Middleware applied globally to all API routes in this blueprint""" # """Middleware applied globally to all API routes in this blueprint"""
return enforce_json() # return enforce_json()
# Swagger JSON file # Swagger JSON file
@api.route("/swagger.json", methods=["GET"]) @api.route("/swagger.json", methods=["GET"])