only check api keys on selected resources
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
from flask import Flask, jsonify, Response, request
|
||||
from api.extensions import db, esales
|
||||
from api.helpers import check_api_key
|
||||
from api.validators import ValidationError
|
||||
|
||||
|
||||
@@ -32,7 +31,4 @@ def create_app(config_name='config'):
|
||||
app.register_blueprint(categories.mod)
|
||||
app.register_blueprint(prices.mod)
|
||||
|
||||
# authentication
|
||||
app.before_request(check_api_key)
|
||||
|
||||
return app
|
||||
|
||||
Reference in New Issue
Block a user