Skip to content

Commit

Permalink
getredash#121: routing new views
Browse files Browse the repository at this point in the history
  • Loading branch information
amirnissim committed Mar 11, 2014
1 parent 765aa9a commit af3ce52
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions controllers.py
Expand Up @@ -32,11 +32,11 @@ def ping():
@app.route('/admin/<anything>')
@app.route('/dashboard/<anything>')
@app.route('/queries')
@app.route('/queries/<anything>')
@app.route('/queries/view/<anything>')
@app.route('/queries/<query_id>')
@app.route('/queries/<query_id>/<anything>')
@app.route('/')
@auth.required
def index(anything=None):
def index(anything=None, query_id=None):
email_md5 = hashlib.md5(current_user.email.lower()).hexdigest()
gravatar_url = "https://www.gravatar.com/avatar/%s?s=40" % email_md5

Expand Down

0 comments on commit af3ce52

Please sign in to comment.