From d014a11aa9ff8876f6e80ee8c4ccbfbd34ab2bbb Mon Sep 17 00:00:00 2001 From: neingeist Date: Sat, 10 Nov 2018 21:40:52 +0100 Subject: [PATCH] make the download form the top-level doc --- app/routes.py | 7 +------ app/templates/index.html | 5 ----- 2 files changed, 1 insertion(+), 11 deletions(-) delete mode 100644 app/templates/index.html diff --git a/app/routes.py b/app/routes.py index 16b4a08..0144d32 100644 --- a/app/routes.py +++ b/app/routes.py @@ -3,12 +3,7 @@ from app import app from app.forms import DownloadForm from datetime import datetime, timedelta -@app.route('/') -@app.route('/index') -def index(): - return render_template('index.html') - -@app.route('/download', methods=['GET', 'POST']) +@app.route('/', methods=['GET', 'POST']) def download(): form = DownloadForm() if form.validate_on_submit(): diff --git a/app/templates/index.html b/app/templates/index.html deleted file mode 100644 index 2482f21..0000000 --- a/app/templates/index.html +++ /dev/null @@ -1,5 +0,0 @@ -{% extends "base.html" %} - -{% block app_content %} -

Hello!

-{% endblock %}