Skip to content

Commit

Permalink
read query params for json in dashboard endpoint (apache#4337)
Browse files Browse the repository at this point in the history
  • Loading branch information
hughhhh authored and mistercrunch committed Feb 5, 2018
1 parent 49ba6be commit 944067f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions superset/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1953,6 +1953,9 @@ def dashboard(**kwargs): # noqa
'common': self.common_bootsrap_payload(),
}

if request.args.get('json') == 'true':
return json_success(json.dumps(bootstrap_data))

return self.render_template(
'superset/dashboard.html',
entry='dashboard',
Expand Down

0 comments on commit 944067f

Please sign in to comment.