-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurls.py
62 lines (53 loc) · 2.6 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
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
from .modules.views import albums as albums_view
urlpatterns = [
# Retrieve
# multiple
path('api/public/profiles/by_user_type',
api_retrieve.ApiPublicProfileGetByUserType.as_view(),
name='api_public_profiles_by_user_type'),
path('api/private/profiles/by_name',
api_retrieve.ApiPrivateProfilesGetByName.as_view(),
name='api_private_profiles_by_name'),
# 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'),
path('api/private/albums',
api_retrieve.ApiPrivateProfileAlbums.as_view(),
name='api_private_albums'),
]
# 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'),
path('albums/list', albums_view.BaseProfileAlbumList.as_view(), name='profile_album_list'),
path('albums/<id>/detail', albums_view.BaseProfileAlbumDetail.as_view(), name='profile_album_detail'),
]