From b5e5fb2bdeeb43ea6fc0832bc9612ad2d2805595 Mon Sep 17 00:00:00 2001 From: Arik Fraimovich Date: Mon, 10 Mar 2014 17:34:50 +0200 Subject: [PATCH] Revert to urls without slash when not needed --- redash/controllers.py | 4 ++-- tests/test_controllers.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/redash/controllers.py b/redash/controllers.py index dedb102c5..3cfc9297f 100644 --- a/redash/controllers.py +++ b/redash/controllers.py @@ -31,8 +31,8 @@ def ping(): @app.route('/admin/') @app.route('/dashboard/') -@app.route('/queries/') -@app.route('/queries//') +@app.route('/queries') +@app.route('/queries/') @app.route('/queries//') @app.route('/') @auth.required diff --git a/tests/test_controllers.py b/tests/test_controllers.py index 314909222..d370c2d6f 100644 --- a/tests/test_controllers.py +++ b/tests/test_controllers.py @@ -71,7 +71,7 @@ class PingTest(TestCase): class IndexTest(BaseTestCase, AuthenticationTestMixin): def setUp(self): - self.paths = ['/', '/dashboard/example', '/queries/1/', '/admin/status'] + self.paths = ['/', '/dashboard/example', '/queries/1', '/admin/status'] super(IndexTest, self).setUp()