feat(preferences): refactoring PR #4399
This commit is contained in:
@@ -175,9 +175,8 @@ func GetHomeDashboard(c *middleware.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
slug := dtos.DashboardSlug{Slug: query.Result}
|
||||
|
||||
c.JSON(200, &slug)
|
||||
dashRedirect := dtos.DashboardRedirect{RedirectUri: "db/" + query.Result}
|
||||
c.JSON(200, &dashRedirect)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
@@ -57,8 +57,8 @@ type DashboardFullWithMeta struct {
|
||||
Dashboard *simplejson.Json `json:"dashboard"`
|
||||
}
|
||||
|
||||
type DashboardSlug struct {
|
||||
Slug string `json:"slug"`
|
||||
type DashboardRedirect struct {
|
||||
RedirectUri string `json:"redirectUri"`
|
||||
}
|
||||
|
||||
type DataSource struct {
|
||||
|
||||
Reference in New Issue
Block a user