Browse Source

Use PUT for updateing

master
Joshua Rubingh 8 months ago
parent
commit
180c9ccb02
  1. 2
      VRE/apps/study/urls.py

2
VRE/apps/study/urls.py

@ -4,7 +4,7 @@ from .views import Contributors, process_study_invite, validate_study_invite @@ -4,7 +4,7 @@ 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', 'post': 'update', 'delete': 'delete'}), 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/invite/', process_study_invite, name='study-invite'),
path('<int:study_id>/contributors/join/<path:jwt_token>', validate_study_invite, name='study-invite-join'),

Loading…
Cancel
Save