Skip to content

Commit

Permalink
Skeleton API: make /skeletons/node-labels also work with GET
Browse files Browse the repository at this point in the history
The parameter set is typically small, so GET requests will typically
suffice. To also support larger parameter sets, POST is left in place.
  • Loading branch information
tomka committed Aug 30, 2018
1 parent a7fa038 commit 06e03f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/applications/catmaid/control/skeleton.py
Original file line number Diff line number Diff line change
Expand Up @@ -2269,7 +2269,7 @@ def all_shared_connectors(request, project_id=None):
return JsonResponse(dict.fromkeys(skelgroup.all_shared_connectors()))


@api_view(['POST'])
@api_view(['GET', 'POST'])
@requires_user_role([UserRole.Browse])
def skeletons_by_node_labels(request, project_id=None):
"""Return relationship between label IDs and skeleton IDs
Expand Down

0 comments on commit 06e03f7

Please sign in to comment.