Flask update

This commit is contained in:
Ruud
2011-08-24 20:59:59 +02:00
parent 970b400a0c
commit d7f758dff4
90 changed files with 3328 additions and 1236 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
from couchpotato.core.helpers.request import jsonified
from flask import Module
from flask.blueprints import Blueprint
api = Module(__name__)
api = Blueprint('api', __name__)
def addApiView(route, func, static = False):
api.add_url_rule(route + ('' if static else '/'), endpoint = route if route else 'index', view_func = func)