From 6a60539ecc242ee3690f2cb0347566a4e56154b1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 15 Sep 2026 08:01:53 +0000 Subject: [PATCH] Support root index fallback for Flask and static hosting Co-authored-by: VloStudios <198949883+VloStudios@users.noreply.github.com> --- app.py | 3 +++ index.html | 12 ++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 index.html 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 @@ + + + + + + Vlo Studios + + + +

Redirecting to static/index.html…

+ +