From 04d7a15d68950523fd13fe3ffb0c7606655d103d Mon Sep 17 00:00:00 2001 From: Ruud Date: Sun, 22 Jan 2012 14:06:17 +0100 Subject: [PATCH] Replace _ for - --- couchpotato/api/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/api/__init__.py b/couchpotato/api/__init__.py index 3e866e47..d1aa6a42 100644 --- a/couchpotato/api/__init__.py +++ b/couchpotato/api/__init__.py @@ -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.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 """ def index():