middle json
This commit is contained in:
@@ -30,10 +30,10 @@ import requests
|
||||
api = Blueprint("api", __name__)
|
||||
|
||||
|
||||
@api.before_request
|
||||
def cors_middleware():
|
||||
"""Middleware applied globally to all API routes in this blueprint"""
|
||||
return enforce_json()
|
||||
# @api.before_request
|
||||
# def cors_middleware():
|
||||
# """Middleware applied globally to all API routes in this blueprint"""
|
||||
# return enforce_json()
|
||||
|
||||
# Swagger JSON file
|
||||
@api.route("/swagger.json", methods=["GET"])
|
||||
|
||||
Reference in New Issue
Block a user