From 80b325a22561758c4ef93e8d8a0c29db9de703bd Mon Sep 17 00:00:00 2001 From: James Taylor Date: Mon, 22 Jul 2019 00:53:22 -0700 Subject: Add homepage route --- youtube/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'youtube') 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") -- cgit v1.2.3