mirror of
https://github.com/grafana/grafana.git
synced 2025-07-31 04:02:30 +08:00
Resurrected nikita-graf's work and added playlistType for future use
This commit is contained in:
@ -47,6 +47,9 @@ func Register(r *macaron.Macaron) {
|
||||
r.Get("/dashboard/*", reqSignedIn, Index)
|
||||
r.Get("/dashboard-solo/*", reqSignedIn, Index)
|
||||
|
||||
r.Get("/playlists/", reqSignedIn, Index)
|
||||
r.Get("/playlists/*", reqSignedIn, Index)
|
||||
|
||||
// sign up
|
||||
r.Get("/signup", Index)
|
||||
r.Get("/api/user/signup/options", wrap(GetSignUpOptions))
|
||||
@ -169,6 +172,16 @@ func Register(r *macaron.Macaron) {
|
||||
r.Get("/tags", GetDashboardTags)
|
||||
})
|
||||
|
||||
// Playlist
|
||||
r.Group("/playlists", func() {
|
||||
r.Get("/", SearchPlaylists)
|
||||
r.Get("/:id", ValidateOrgPlaylist, GetPlaylist)
|
||||
r.Get("/:id/dashboards", ValidateOrgPlaylist, GetPlaylistDashboards)
|
||||
r.Delete("/:id", reqEditorRole, ValidateOrgPlaylist, DeletePlaylist)
|
||||
r.Put("/:id", reqEditorRole, bind(m.UpdatePlaylistQuery{}), ValidateOrgPlaylist, UpdatePlaylist)
|
||||
r.Post("/", reqEditorRole, bind(m.CreatePlaylistQuery{}), CreatePlaylist)
|
||||
})
|
||||
|
||||
// Search
|
||||
r.Get("/search/", Search)
|
||||
|
||||
|
Reference in New Issue
Block a user