Navigation Menu

Skip to content

Commit

Permalink
fixed route for adding an album to the queue
Browse files Browse the repository at this point in the history
  • Loading branch information
markryall committed Jan 10, 2013
1 parent 850edcd commit 0eec78a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/albums.coffee
Expand Up @@ -20,7 +20,7 @@ $ ->

$('.enqueue-album').click ->
hideMessage()
$.post '/album', id: $(this).data('id'), (data)->
$.post '/api/enqueue/album', id: $(this).data('id'), (data)->
showMessage "#{data.tracks} tracks queued"
false

Expand Down
2 changes: 1 addition & 1 deletion public/albums.js
Expand Up @@ -14,7 +14,7 @@
};
$('.enqueue-album').click(function() {
hideMessage();
$.post('/album', {
$.post('/api/enqueue/album', {
id: $(this).data('id')
}, function(data) {
return showMessage("" + data.tracks + " tracks queued");
Expand Down

0 comments on commit 0eec78a

Please sign in to comment.