diff options
author | James Taylor <user234683@users.noreply.github.com> | 2019-07-22 00:53:22 -0700 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2019-07-22 00:53:22 -0700 |
commit | 80b325a22561758c4ef93e8d8a0c29db9de703bd (patch) | |
tree | a0d86d9cfc029b88643f700968dd2c422472d8e5 | |
parent | 28204088af0d868a65b6dbd3b74b0edefb996184 (diff) | |
download | yt-local-80b325a22561758c4ef93e8d8a0c29db9de703bd.tar.lz yt-local-80b325a22561758c4ef93e8d8a0c29db9de703bd.tar.xz yt-local-80b325a22561758c4ef93e8d8a0c29db9de703bd.zip |
Add homepage route
-rw-r--r-- | youtube/__init__.py | 4 |
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") |