-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurls.py
52 lines (44 loc) · 2.08 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
from django.urls import path
from .modules.api import retrieve as api_retrieve
from .modules.api import update as api_update
from .modules.views import settings as settings_view
from .modules.views import home as home_view
urlpatterns = [
# Retrieve
# multiple
path('api/public/profiles/by_user_type',
api_retrieve.ApiPublicProfileGetByUserType.as_view(),
name='api_public_profiles_by_user_type'),
# single
path('api/public/profile/by_pk',
api_retrieve.ApiPublicProfileGetByPK.as_view(),
name='api_public_profile_by_pk'),
path('api/public/profile/by_username',
api_retrieve.ApiPublicProfileGetByUsername.as_view(),
name='api_public_profile_by_username'),
path('api/public/profile/by_pk',
api_retrieve.ApiPrivateProfileGetByPK.as_view(),
name='api_private_profile_by_pk'),
# Update
path('api/private/profile/update',
api_update.ApiPrivateProfileUpdate.as_view(),
name='api_private_profile_update'),
# albums
path('api/public/profile_photos/album',
api_retrieve.ApiPublicProfileGetProfilePhotoAlbum.as_view(),
name='api_public_profile_photo_album'),
path('api/public/cover_photos/album',
api_retrieve.ApiPublicProfileGetCoverPhotoAlbum.as_view(),
name='api_public_cover_photo_album'),
]
# views
urlpatterns += [
# home
path('home', home_view.BaseProfileHomeView.as_view(), name='base_profile_home_view'),
# settings
path('settings/basic', settings_view.ProfileSettingsBasicInfoView.as_view(), name='profile_settings_basic_info_view'),
path('settings/email', settings_view.ProfileSettingsEmailView.as_view(), name='profile_settings_email_view'),
path('settings/password', settings_view.ProfileSettingsPasswordView.as_view(), name='profile_settings_password_view'),
path('settings/biometrics/create', settings_view.BiometricsCreateView.as_view(), name='profile_settings_biometrics_create'),
path('settings/biometrics/update', settings_view.BiometricsUpdateView.as_view(), name='profile_settings_biometrics_update'),
]