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,10 +1,12 @@
from flask import Blueprint, request, jsonify
from api import db, tasks
from api.models import Category
from api.helpers import pagination_to_dict
from api.helpers import pagination_to_dict, check_api_key
mod = Blueprint('categories', __name__, url_prefix='/categories')
mod.before_request(check_api_key)
@mod.route("/", methods=["GET"])
def list():