aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/__init__.py
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2019-07-22 00:53:22 -0700
committerJames Taylor <user234683@users.noreply.github.com>2019-07-22 00:53:22 -0700
commit80b325a22561758c4ef93e8d8a0c29db9de703bd (patch)
treea0d86d9cfc029b88643f700968dd2c422472d8e5 /youtube/__init__.py
parent28204088af0d868a65b6dbd3b74b0edefb996184 (diff)
downloadyt-local-80b325a22561758c4ef93e8d8a0c29db9de703bd.tar.lz
yt-local-80b325a22561758c4ef93e8d8a0c29db9de703bd.tar.xz
yt-local-80b325a22561758c4ef93e8d8a0c29db9de703bd.zip
Add homepage route
Diffstat (limited to 'youtube/__init__.py')
-rw-r--r--youtube/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube/__init__.py b/youtube/__init__.py
index faab170..e620827 100644
--- a/youtube/__init__.py
+++ b/youtube/__init__.py
@@ -1,3 +1,7 @@
import flask
yt_app = flask.Flask(__name__)
yt_app.url_map.strict_slashes = False
+
+@yt_app.route('/')
+def homepage():
+ return flask.render_template('base.html', title="Youtube local")