Small fixes

This commit is contained in:
Ruud
2012-01-06 17:08:45 +01:00
parent 1c75bfb9b0
commit 168a9a2f95
6 changed files with 15 additions and 10 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ from flask.blueprints import Blueprint
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)
api.add_url_rule(route + ('' if static else '/'), endpoint = route.replace('.', '_') if route else 'index', view_func = func)
""" Api view """
def index():