diff --git a/VRE/apps/study/urls.py b/VRE/apps/study/urls.py index c107133..8e220bf 100644 --- a/VRE/apps/study/urls.py +++ b/VRE/apps/study/urls.py @@ -4,8 +4,8 @@ from .views import Contributors, process_study_invite, validate_study_invite urlpatterns = [ path('/contributors/', Contributors.as_view({'get': 'list'}), name='study-contributors'), - path('/contributors//', Contributors.as_view({'get': 'get', 'put': 'update', 'delete': 'delete'}), name='study-contributors'), + path('/contributors//', Contributors.as_view({'get': 'get', 'put': 'update', 'post': 'update', 'delete': 'delete'}), name='study-contributors'), - path('/invite/', process_study_invite, name='study-invite'), + path('/contributor/invite/', process_study_invite, name='study-invite'), path('/join/', validate_study_invite, name='study-invite-join'), ] diff --git a/VRE/apps/study/views.py b/VRE/apps/study/views.py index 02f1713..9e083d3 100644 --- a/VRE/apps/study/views.py +++ b/VRE/apps/study/views.py @@ -174,7 +174,7 @@ class Studies(ModelViewSet): class Contributors(ModelViewSet): - http_method_names = ['get', 'put', 'delete'] + http_method_names = ['get', 'put', 'post', 'delete'] queryset = StudyRole.objects.all() serializer_class = ContributorSerializer