middle json
This commit is contained in:
@@ -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"])
|
||||||
|
|||||||
Reference in New Issue
Block a user