From edefdcb7430f40a8f2143b89f5a1474c2810d75a Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Tue, 25 Mar 2025 09:14:31 +0100 Subject: [PATCH] Remove trailing/ from URL --- changedetectionio/blueprint/backups/__init__.py | 2 +- changedetectionio/blueprint/rss/__init__.py | 3 +-- changedetectionio/blueprint/settings/__init__.py | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/changedetectionio/blueprint/backups/__init__.py b/changedetectionio/blueprint/backups/__init__.py index add44308c..fe793d1c4 100644 --- a/changedetectionio/blueprint/backups/__init__.py +++ b/changedetectionio/blueprint/backups/__init__.py @@ -138,7 +138,7 @@ def construct_blueprint(datastore: ChangeDetectionStore): return send_from_directory(os.path.abspath(datastore.datastore_path), filename, as_attachment=True) @login_optionally_required - @backups_blueprint.route("/", methods=['GET']) + @backups_blueprint.route("", methods=['GET']) def index(): backups = find_backups() output = render_template("overview.html", diff --git a/changedetectionio/blueprint/rss/__init__.py b/changedetectionio/blueprint/rss/__init__.py index d9a87695c..113e35ac5 100644 --- a/changedetectionio/blueprint/rss/__init__.py +++ b/changedetectionio/blueprint/rss/__init__.py @@ -13,8 +13,7 @@ def construct_blueprint(datastore: ChangeDetectionStore): # Import the login decorator if needed # from changedetectionio.auth_decorator import login_optionally_required - - @rss_blueprint.route("/", methods=['GET']) + @rss_blueprint.route("", methods=['GET']) def feed(): now = time.time() # Always requires token set diff --git a/changedetectionio/blueprint/settings/__init__.py b/changedetectionio/blueprint/settings/__init__.py index 5375b565c..2137487cd 100644 --- a/changedetectionio/blueprint/settings/__init__.py +++ b/changedetectionio/blueprint/settings/__init__.py @@ -13,7 +13,7 @@ from changedetectionio.auth_decorator import login_optionally_required def construct_blueprint(datastore: ChangeDetectionStore): settings_blueprint = Blueprint('settings', __name__, template_folder="templates") - @settings_blueprint.route("/", methods=['GET', "POST"]) + @settings_blueprint.route("", methods=['GET', "POST"]) @login_optionally_required def settings_page(): from changedetectionio import forms