mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
read query params for json in dashboard endpoint (#4337)
This commit is contained in:
committed by
Maxime Beauchemin
parent
e965f95477
commit
2789385688
@@ -1953,6 +1953,9 @@ class Superset(BaseSupersetView):
|
||||
'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',
|
||||
|
||||
Reference in New Issue
Block a user