Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
0ef94ea4
Unverified
Commit
0ef94ea4
authored
Mar 14, 2018
by
Carl Bergquist
Committed by
GitHub
Mar 14, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11232 from grafana/11231_dash_url
Should be possible to browse dashboard using only uid
parents
a0a57ac3
91fa076f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
pkg/api/api.go
+1
-0
public/app/routes/routes.ts
+11
-0
No files found.
pkg/api/api.go
View file @
0ef94ea4
...
...
@@ -66,6 +66,7 @@ func (hs *HttpServer) registerRoutes() {
r
.
Get
(
"/plugins/:id/page/:page"
,
reqSignedIn
,
Index
)
r
.
Get
(
"/d/:uid/:slug"
,
reqSignedIn
,
Index
)
r
.
Get
(
"/d/:uid"
,
reqSignedIn
,
Index
)
r
.
Get
(
"/dashboard/db/:slug"
,
reqSignedIn
,
redirectFromLegacyDashboardUrl
,
Index
)
r
.
Get
(
"/dashboard/script/*"
,
reqSignedIn
,
Index
)
r
.
Get
(
"/dashboard-solo/snapshot/*"
,
Index
)
...
...
public/app/routes/routes.ts
View file @
0ef94ea4
...
...
@@ -22,6 +22,12 @@ export function setupAngularRoutes($routeProvider, $locationProvider) {
reloadOnSearch
:
false
,
pageClass
:
'page-dashboard'
,
})
.
when
(
'/d/:uid'
,
{
templateUrl
:
'public/app/partials/dashboard.html'
,
controller
:
'LoadDashboardCtrl'
,
reloadOnSearch
:
false
,
pageClass
:
'page-dashboard'
,
})
.
when
(
'/dashboard/:type/:slug'
,
{
templateUrl
:
'public/app/partials/dashboard.html'
,
controller
:
'LoadDashboardCtrl'
,
...
...
@@ -98,6 +104,11 @@ export function setupAngularRoutes($routeProvider, $locationProvider) {
controller
:
'FolderDashboardsCtrl'
,
controllerAs
:
'ctrl'
,
})
.
when
(
'/dashboards/f/:uid'
,
{
templateUrl
:
'public/app/features/dashboard/partials/folder_dashboards.html'
,
controller
:
'FolderDashboardsCtrl'
,
controllerAs
:
'ctrl'
,
})
.
when
(
'/org'
,
{
templateUrl
:
'public/app/features/org/partials/orgDetails.html'
,
controller
:
'OrgDetailsCtrl'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment