Revert to urls without slash when not needed

This commit is contained in:
Arik Fraimovich
2014-03-10 17:34:50 +02:00
committed by Amir Nissim
parent cf82b4899a
commit b5e5fb2bde
2 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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()