Replace _ for -
This commit is contained in:
1 parent
3497c3d1fa
commit
04d7a15d68
1 file changed
+1
-1
@@ -4,7 +4,7 @@ from flask.blueprints import Blueprint
|
|||||||
api = Blueprint('api', __name__)
|
api = Blueprint('api', __name__)
|
||||||
|
|
||||||
def addApiView(route, func, static = False):
|
def addApiView(route, func, static = False):
|
||||||
api.add_url_rule(route + ('' if static else '/'), endpoint = route.replace('.', '_') 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 """
|
""" Api view """
|
||||||
def index():
|
def index():
|
||||||
|
|||||||
Reference in new issue
Block a user