Fix urls based on current frontend requests
continuous-integration/drone/push Build is passing Details

master
Joshua Rubingh 1 year ago
parent b43c8b9c2c
commit ad25fceb39

@ -4,8 +4,8 @@ from .views import Contributors, process_study_invite, validate_study_invite
urlpatterns = [
path('<int:study_id>/contributors/', Contributors.as_view({'get': 'list'}), name='study-contributors'),
path('<int:study_id>/contributors/<int:contributor_id>/', Contributors.as_view({'get': 'get', 'put': 'update', 'delete': 'delete'}), name='study-contributors'),
path('<int:study_id>/contributors/<int:contributor_id>/', Contributors.as_view({'get': 'get', 'put': 'update', 'post': 'update', 'delete': 'delete'}), name='study-contributors'),
path('<int:study_id>/invite/', process_study_invite, name='study-invite'),
path('<int:study_id>/contributor/invite/', process_study_invite, name='study-invite'),
path('<int:study_id>/join/<path:jwt_token>', validate_study_invite, name='study-invite-join'),
]

@ -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

Loading…
Cancel
Save