Skip to content

Commit 1ec97e5

Browse files
committed
feat(playlist): shortens urls
1 parent 458d150 commit 1ec97e5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pkg/api/api.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@ func Register(r *macaron.Macaron) {
176176
r.Group("/playlists", func() {
177177
r.Get("/", wrap(SearchPlaylists))
178178
r.Get("/:id", ValidateOrgPlaylist, wrap(GetPlaylist))
179-
r.Get("/:id/playlistitems", ValidateOrgPlaylist, wrap(GetPlaylistItems))
180-
r.Get("/:id/playlistdashboards", ValidateOrgPlaylist, wrap(GetPlaylistDashboards))
179+
r.Get("/:id/items", ValidateOrgPlaylist, wrap(GetPlaylistItems))
180+
r.Get("/:id/dashboards", ValidateOrgPlaylist, wrap(GetPlaylistDashboards))
181181
r.Delete("/:id", reqEditorRole, ValidateOrgPlaylist, wrap(DeletePlaylist))
182182
r.Put("/:id", reqEditorRole, bind(m.UpdatePlaylistQuery{}), ValidateOrgPlaylist, wrap(UpdatePlaylist))
183183
r.Post("/", reqEditorRole, bind(m.CreatePlaylistQuery{}), wrap(CreatePlaylist))

public/app/features/playlist/playlist_edit_ctrl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function (angular, config, _) {
2525
$scope.playlist = result;
2626
});
2727

28-
backendSrv.get('/api/playlists/' + playlistId + '/playlistitems')
28+
backendSrv.get('/api/playlists/' + playlistId + '/items')
2929
.then(function(result) {
3030
$scope.playlistItems = result;
3131
});

public/app/features/playlist/playlist_routes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function (angular) {
3131

3232
return backendSrv.get('/api/playlists/' + playlistId)
3333
.then(function(playlist) {
34-
return backendSrv.get('/api/playlists/' + playlistId + '/playlistdashboards')
34+
return backendSrv.get('/api/playlists/' + playlistId + '/dashboards')
3535
.then(function(dashboards) {
3636
playlistSrv.start(dashboards, playlist.timespan);
3737
});

0 commit comments

Comments
 (0)