ClientScript register

This commit is contained in:
Ruud
2011-04-11 15:37:41 +02:00
parent 2a60a4eaa3
commit 0672e120a0
19 changed files with 514 additions and 15 deletions
+2 -2
View File
@@ -3,8 +3,8 @@ from flask import Module
api = Module(__name__)
def addApiView(route, func):
api.add_url_rule(route + '/', endpoint = route if route else 'index', view_func = func)
def addApiView(route, func, static = False):
api.add_url_rule(route + ('' if static else '/'), endpoint = route if route else 'index', view_func = func)
""" Api view """
def index():