remove extra slash

This commit is contained in:
Mylloon 2022-10-06 14:32:18 +02:00
parent fd0fb97e48
commit 98b10c1c38
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,7 @@ app = Flask(__name__, static_url_path="/", static_folder="public")
app.register_blueprint(index, url_prefix="/index") app.register_blueprint(index, url_prefix="/index")
@app.route('/') @app.route("/")
def root(): def root():
return redirect("index") return redirect("index")

View file

@ -4,6 +4,6 @@ from config import Config
router = Blueprint("index", __name__) router = Blueprint("index", __name__)
@router.route("/") @router.route("")
def index(): def index():
return render_template("index.html", name=Config.name) return render_template("index.html", name=Config.name)