mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
dashboards: add new default frontend route for loading a dashboard
New default route /d/<uid>/<slug of dashboard title> where dashboard are loaded by unique identifier. If old route /dashboard/db/<slug of dashboard tile> are used, try to lookup dashboard by slug and redirect to new default route. #7883
This commit is contained in:
@@ -225,6 +225,10 @@ export class BackendSrv {
|
||||
return this.get('/api/dashboards/' + type + '/' + slug);
|
||||
}
|
||||
|
||||
getDashboardByUid(uid: string) {
|
||||
return this.get(`/api/dashboards/uid/${uid}`);
|
||||
}
|
||||
|
||||
saveDashboard(dash, options) {
|
||||
options = options || {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user