Return 201 Created in API playlists/create

This commit is contained in:
Thibault Jouan
2015-05-04 00:53:42 +00:00
parent 7a28b01287
commit 77be82a19f
2 changed files with 18 additions and 10 deletions

View File

@@ -12,7 +12,7 @@ module API
def create
@playlist = current_user.playlists.build playlist_params
@playlist.save
render :show
render :show, status: :created
end
def update