aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--settings.py4
-rw-r--r--youtube/__init__.py3
2 files changed, 4 insertions, 3 deletions
diff --git a/settings.py b/settings.py
index 3e2e1d0..16cdf78 100644
--- a/settings.py
+++ b/settings.py
@@ -1,4 +1,4 @@
-from youtube import util, yt_app
+from youtube import util
import ast
import re
import os
@@ -271,8 +271,6 @@ else:
print("Tor routing is OFF - your Youtube activity is NOT anonymous")
-
-@yt_app.route('/settings', methods=['POST', 'GET'])
def settings_page():
if request.method == 'GET':
return flask.render_template('settings.html',
diff --git a/youtube/__init__.py b/youtube/__init__.py
index 38ff7d3..0137e86 100644
--- a/youtube/__init__.py
+++ b/youtube/__init__.py
@@ -3,6 +3,9 @@ import settings
yt_app = flask.Flask(__name__)
yt_app.url_map.strict_slashes = False
+
+yt_app.add_url_rule('/settings', 'settings_page', settings.settings_page, methods=['POST', 'GET'])
+
@yt_app.route('/')
def homepage():
return flask.render_template('home.html', title="Youtube local")