only check api keys on selected resources

This commit is contained in:
Martin
2016-11-14 00:10:57 +01:00
parent c7fdb2684b
commit 8e28378cb8
7 changed files with 20 additions and 8 deletions
+3 -1
View File
@@ -1,12 +1,14 @@
from flask import Blueprint, request, jsonify
from api import db, tasks
from api.models import Designer
from api.helpers import pagination_to_dict
from api.helpers import pagination_to_dict, check_api_key
from api.validators import validate_jsonschema
mod = Blueprint('designers', __name__, url_prefix='/designers')
mod.before_request(check_api_key)
create_designer_schema = {
"type": "object",
"properties": {