From 384e06d6fed30d68fe2e4dc0787305e6f6089f79 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 14 Jun 2021 20:18:40 -0400 Subject: [PATCH] Subdirectory pages currently 404. I'll look into this later --- WebHostLib/__init__.py | 7 ++++--- WebHostLib/templates/games.html | 1 - 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/WebHostLib/__init__.py b/WebHostLib/__init__.py index 0838dcc8..a502ce70 100644 --- a/WebHostLib/__init__.py +++ b/WebHostLib/__init__.py @@ -92,19 +92,20 @@ minecraft_page = Blueprint('minecraft_page', __name__, template_folder='template def games(): return render_template("games.html") -@zelda_page.route('/', defaults={'page': 'index'}) + +@zelda_page.route('/', defaults={'page': 'zelda3'}) @zelda_page.route('/') def zelda_pages(page): return render_template(page+".html") -@factorio_page.route('/', defaults={'page': 'index'}) +@factorio_page.route('/', defaults={'page': 'factorio'}) @factorio_page.route('/') def factorio_pages(page): return render_template(page+".html") -@minecraft_page.route('/', defaults={'page': 'index'}) +@minecraft_page.route('/', defaults={'page': 'minecraft'}) @minecraft_page.route('/') def minecraft_pages(page): return render_template(page+".html") diff --git a/WebHostLib/templates/games.html b/WebHostLib/templates/games.html index e96aa1c3..6458f6fe 100644 --- a/WebHostLib/templates/games.html +++ b/WebHostLib/templates/games.html @@ -3,7 +3,6 @@ {% block head %} Player Settings - {% endblock %} {% block body %}