From eb2492c61fdd208df21761003907d0f53761340b Mon Sep 17 00:00:00 2001 From: Matthew Iverson Date: Thu, 28 Nov 2024 10:35:03 -0500 Subject: [PATCH] Upload files to "/" --- app.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app.py b/app.py index 8f38cf7..a041ac8 100644 --- a/app.py +++ b/app.py @@ -105,6 +105,14 @@ def methodology(): content = get_methodology_content() return render_template('methodology.html', content=content) +@app.route('/methodology/') +def methodology_section(title): + content = get_methodology_content() + section = next((s for s in content if s["title"].replace(" ", "_").lower() == title.lower()), None) + if not section: + abort(404) + return render_template('section.html', section=section) + @app.route('/linux') def linux(): sections = get_linux_content()