-
Notifications
You must be signed in to change notification settings - Fork 27
/
urls.py
81 lines (79 loc) · 3.06 KB
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
from django.urls import re_path, include, path
from core.common.constants import NAMESPACE_PATTERN
from core.orgs import views as org_views
from . import views
urlpatterns = [
re_path(r'^$', views.UserListView.as_view(), name='userprofile-list'),
path('api-token/', views.TokenExchangeView.as_view(), name='user-oid-django-token-exchange'),
path('oidc/code-exchange/', views.OIDCodeExchangeView.as_view(), name='user-oid-code-exchange'),
path('login/', views.TokenAuthenticationView.as_view(), name='user-login'),
path('signup/', views.UserSignup.as_view(), name='user-signup'),
re_path(
r'^(?P<user>' + NAMESPACE_PATTERN + ')/$',
views.UserDetailView.as_view(),
name='userprofile-detail'
),
path(
'<str:user>/sso-migrate/',
views.SSOMigrateView.as_view(),
name='userprofile-sso-migrate'
),
path(
'<str:user>/verify/<str:verification_token>/',
views.UserEmailVerificationView.as_view(),
name='userprofile-email-verify'
),
path(
'password/reset/',
views.UserPasswordResetView.as_view(),
name='userprofile-email-verify'
),
re_path(
r'^(?P<user>' + NAMESPACE_PATTERN + ')/logo/$',
views.UserLogoView.as_view(),
name='userprofile-logo'
),
re_path(
r'^(?P<user>' + NAMESPACE_PATTERN + ')/reactivate/$',
views.UserReactivateView.as_view(),
name='userprofile-reactivate'
),
re_path(
r'^(?P<user>' + NAMESPACE_PATTERN + ')/staff/$',
views.UserStaffToggleView.as_view(),
name='userprofile-reactivate'
),
re_path(
r'^(?P<user>' + NAMESPACE_PATTERN + ')/orgs/$',
org_views.OrganizationListView.as_view(),
name='userprofile-orgs'
),
re_path(
r'^(?P<user>' + NAMESPACE_PATTERN + ')/extras/$',
views.UserExtrasView.as_view(),
name='user-extras'
),
re_path(
r'^(?P<user>' + NAMESPACE_PATTERN + ')/orgs/sources/$',
org_views.OrganizationSourceListView.as_view(),
name='userprofile-organization-source-list'
),
re_path(
r'^(?P<user>' + NAMESPACE_PATTERN + ')/orgs/collections/$',
org_views.OrganizationCollectionListView.as_view(),
name='userprofile-organization-collection-list'
),
re_path(
r"^(?P<user>{pattern})/extras/(?P<extra>{pattern})/$".format(pattern=NAMESPACE_PATTERN),
views.UserExtraRetrieveUpdateDestroyView.as_view(),
name='user-extra'
),
re_path(r'^(?P<user>' + NAMESPACE_PATTERN + ')/sources/', include('core.sources.urls')),
#TODO: require FHIR subdomain
re_path(r'^(?P<user>' + NAMESPACE_PATTERN + ')/CodeSystem/', include('core.code_systems.urls'),
name='code_systems_urls'),
re_path(r'^(?P<user>' + NAMESPACE_PATTERN + ')/ValueSet/', include('core.value_sets.urls'),
name='value_sets_urls'),
re_path(r'^(?P<user>' + NAMESPACE_PATTERN + ')/collections/', include('core.collections.urls')),
re_path(r'^(?P<user>' + NAMESPACE_PATTERN + ')/pins/', include('core.pins.urls')),
]