Skip to content

Commit

Permalink
Adding POST support for the getLocations URL
Browse files Browse the repository at this point in the history
  • Loading branch information
knachiappan committed Nov 12, 2016
1 parent bf7bf92 commit 16dc80e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EcoKitchen_backend/EcoKitchen/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def postLocation(request):
response_data['locationId'] = location.id
return JsonResponse(response_data)

@api_view(['GET'])
@api_view(['GET', 'POST'])
@parser_classes((JSONParser,))
def getAllLocations(request):
locationList = Location.objects.all()
Expand Down

0 comments on commit 16dc80e

Please sign in to comment.