Completed #9 and changed the http endpoint for uploading a song from upload/song/ to song/upload/

This commit is contained in:
amazing-username
2019-03-05 21:58:21 -05:00
parent a949de27f2
commit d2bb9b17af
3 changed files with 10 additions and 2 deletions
+5
View File
@@ -31,4 +31,9 @@ class UploadDetail(APIView):
return Song.objects.get(pk=pk)
except Song.DoesNotExist:
raise Http404
def get(self, request, pk, format=NONE):
song = self.get_object(pk)
serializer = SongSerializer(song)
return Response(serializer.data)