Ask for old CouchPotato database in the wizard. closes #144

This commit is contained in:
Ruud
2012-05-05 22:43:07 +02:00
parent 4ea0474325
commit 2d61a31005
6 changed files with 122 additions and 7 deletions
+2 -2
View File
@@ -6,8 +6,8 @@ api = Blueprint('api', __name__)
api_docs = {}
api_docs_missing = []
def addApiView(route, func, static = False, docs = None):
api.add_url_rule(route + ('' if static else '/'), endpoint = route.replace('.', '::') if route else 'index', view_func = func)
def addApiView(route, func, static = False, docs = None, **kwargs):
api.add_url_rule(route + ('' if static else '/'), endpoint = route.replace('.', '::') if route else 'index', view_func = func, **kwargs)
if docs:
api_docs[route[4:] if route[0:4] == 'api.' else route] = docs
else: