mirror of
https://github.com/getredash/redash.git
synced 2026-05-11 18:01:55 -04:00
Revert to urls without slash when not needed
This commit is contained in:
committed by
Amir Nissim
parent
cf82b4899a
commit
b5e5fb2bde
@@ -31,8 +31,8 @@ def ping():
|
||||
|
||||
@app.route('/admin/<anything>')
|
||||
@app.route('/dashboard/<anything>')
|
||||
@app.route('/queries/')
|
||||
@app.route('/queries/<query_id>/')
|
||||
@app.route('/queries')
|
||||
@app.route('/queries/<query_id>')
|
||||
@app.route('/queries/<query_id>/<anything>')
|
||||
@app.route('/')
|
||||
@auth.required
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user