diff --git a/app.py b/app.py index a164657..8fc0240 100644 --- a/app.py +++ b/app.py @@ -9,6 +9,9 @@ @app.route('/') def index(): + root_index = os.path.join(app.root_path, 'index.html') + if os.path.exists(root_index): + return send_from_directory(app.root_path, 'index.html') return send_from_directory(app.static_folder, 'index.html') @app.route('/api/repos') diff --git a/index.html b/index.html new file mode 100644 index 0000000..5caf71c --- /dev/null +++ b/index.html @@ -0,0 +1,12 @@ + + +
+ + +Redirecting to static/index.html…
+ +