From 98b10c1c38a95dae27b263f29ae11c783e09ce33 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 6 Oct 2022 14:32:18 +0200 Subject: [PATCH] remove extra slash --- src/app.py | 2 +- src/routes/index.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app.py b/src/app.py index 979797f..cf61dd5 100644 --- a/src/app.py +++ b/src/app.py @@ -6,7 +6,7 @@ app = Flask(__name__, static_url_path="/", static_folder="public") app.register_blueprint(index, url_prefix="/index") -@app.route('/') +@app.route("/") def root(): return redirect("index") diff --git a/src/routes/index.py b/src/routes/index.py index 9581268..5883953 100644 --- a/src/routes/index.py +++ b/src/routes/index.py @@ -4,6 +4,6 @@ from config import Config router = Blueprint("index", __name__) -@router.route("/") +@router.route("") def index(): return render_template("index.html", name=Config.name)