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
07fdf649
Commit
07fdf649
authored
Jan 12, 2016
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(playlist): new url for viewing playlist
parent
fb4bb7f5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
+2
-1
pkg/api/api.go
+1
-0
public/app/features/playlist/playlist_routes.js
+1
-1
No files found.
pkg/api/api.go
View file @
07fdf649
...
@@ -177,6 +177,7 @@ func Register(r *macaron.Macaron) {
...
@@ -177,6 +177,7 @@ func Register(r *macaron.Macaron) {
r
.
Get
(
"/"
,
wrap
(
SearchPlaylists
))
r
.
Get
(
"/"
,
wrap
(
SearchPlaylists
))
r
.
Get
(
"/:id"
,
ValidateOrgPlaylist
,
wrap
(
GetPlaylist
))
r
.
Get
(
"/:id"
,
ValidateOrgPlaylist
,
wrap
(
GetPlaylist
))
r
.
Get
(
"/:id/playlistitems"
,
ValidateOrgPlaylist
,
wrap
(
GetPlaylistItems
))
r
.
Get
(
"/:id/playlistitems"
,
ValidateOrgPlaylist
,
wrap
(
GetPlaylistItems
))
r
.
Get
(
"/:id/playlistdashboards"
,
ValidateOrgPlaylist
,
wrap
(
GetPlaylistDashboards
))
r
.
Delete
(
"/:id"
,
reqEditorRole
,
ValidateOrgPlaylist
,
wrap
(
DeletePlaylist
))
r
.
Delete
(
"/:id"
,
reqEditorRole
,
ValidateOrgPlaylist
,
wrap
(
DeletePlaylist
))
r
.
Put
(
"/:id"
,
reqEditorRole
,
bind
(
m
.
UpdatePlaylistQuery
{}),
ValidateOrgPlaylist
,
wrap
(
UpdatePlaylist
))
r
.
Put
(
"/:id"
,
reqEditorRole
,
bind
(
m
.
UpdatePlaylistQuery
{}),
ValidateOrgPlaylist
,
wrap
(
UpdatePlaylist
))
r
.
Post
(
"/"
,
reqEditorRole
,
bind
(
m
.
CreatePlaylistQuery
{}),
wrap
(
CreatePlaylist
))
r
.
Post
(
"/"
,
reqEditorRole
,
bind
(
m
.
CreatePlaylistQuery
{}),
wrap
(
CreatePlaylist
))
...
...
public/app/features/playlist/playlist_routes.js
View file @
07fdf649
...
@@ -31,7 +31,7 @@ function (angular) {
...
@@ -31,7 +31,7 @@ function (angular) {
return
backendSrv
.
get
(
'/api/playlists/'
+
playlistId
)
return
backendSrv
.
get
(
'/api/playlists/'
+
playlistId
)
.
then
(
function
(
playlist
)
{
.
then
(
function
(
playlist
)
{
return
backendSrv
.
get
(
'/api/playlists/'
+
playlistId
+
'/dashboards'
)
return
backendSrv
.
get
(
'/api/playlists/'
+
playlistId
+
'/
playlist
dashboards'
)
.
then
(
function
(
dashboards
)
{
.
then
(
function
(
dashboards
)
{
playlistSrv
.
start
(
dashboards
,
playlist
.
timespan
);
playlistSrv
.
start
(
dashboards
,
playlist
.
timespan
);
});
});
...
...
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