Fix url_for for api endpoints.
This commit is contained in:
parent
535947a06d
commit
bb2767ff16
4 changed files with 14 additions and 15 deletions
|
@ -21,7 +21,8 @@ from auth.auth import process_oauth
|
|||
|
||||
logger = logging.getLogger(__name__)
|
||||
api_bp = Blueprint('api', __name__)
|
||||
api = Api(api_bp)
|
||||
api = Api()
|
||||
api.init_app(api_bp)
|
||||
api.decorators = [process_oauth,
|
||||
crossdomain(origin='*', headers=['Authorization', 'Content-Type'])]
|
||||
|
||||
|
|
Reference in a new issue