-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathurls.py
More file actions
55 lines (51 loc) · 1.37 KB
/
urls.py
File metadata and controls
55 lines (51 loc) · 1.37 KB
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
import django.urls
import rest_framework_simplejwt.views
import user.views
app_name = 'api-user'
urlpatterns = [
django.urls.path(
'auth/sign-up',
user.views.UserSignUpView.as_view(),
name='user-sign-up',
),
django.urls.path(
'auth/sign-in',
user.views.UserSignInView.as_view(),
name='user-sign-in',
),
django.urls.path(
'token/refresh/',
rest_framework_simplejwt.views.TokenRefreshView.as_view(),
name='user-token-refresh',
),
django.urls.path(
'profile',
user.views.UserProfileView.as_view(),
name='user-profile',
),
django.urls.path(
'feed',
user.views.UserFeedView.as_view(),
name='user-feed',
),
django.urls.path(
'promo/<uuid:id>',
user.views.UserPromoDetailView.as_view(),
name='user-promo-detail',
),
django.urls.path(
'promo/<uuid:id>/like',
user.views.UserPromoLikeView.as_view(),
name='user-promo-like',
),
django.urls.path(
'promo/<uuid:promo_id>/comments',
user.views.PromoCommentListCreateView.as_view(),
name='user-promo-comment-list-create',
),
django.urls.path(
'promo/<uuid:promo_id>/comments/<uuid:comment_id>',
user.views.PromoCommentDetailView.as_view(),
name='user-promo-comment-detail',
),
]