示例#1
0
    path('user/', include(auth_user_patterns)),
    path('proxy/', ProxyAuth.as_view(), name='proxy-auth'),
]

post_notifications_patterns = [
    path('mute/', MutePost.as_view(), name='mute-post'),
    path('unmute/', UnmutePost.as_view(), name='unmute-post'),
]

post_comment_reactions_patterns = [
    path('', PostCommentReactions.as_view(), name='post-comment-reactions'),
    path('emoji-count/',
         PostCommentReactionsEmojiCount.as_view(),
         name='post-comment-reactions-emoji-count'),
    path('<int:post_comment_reaction_id>/',
         PostCommentReactionItem.as_view(),
         name='post-comment-reaction'),
]

post_comment_notifications_patterns = [
    path('mute/', MutePostComment.as_view(), name='mute-post-comment'),
    path('unmute/', UnmutePostComment.as_view(), name='unmute-post-comment'),
]

post_comment_patterns = [
    path('', PostCommentItem.as_view(), name='post-comment'),
    path('translate/',
         TranslatePostComment.as_view(),
         name='translate-post-comment'),
    path('report/', ReportPostComment.as_view(), name='report-post-comment'),
    path('replies/', PostCommentReplies.as_view(),
示例#2
0
    path('linked-users/', include(auth_linked_users_patterns)),
    path('blocked-users/', include(auth_blocked_users_patterns)),
    path('users/', include(auth_users_patterns)),
    path('user/', include(auth_user_patterns)),
    path('proxy/', ProxyAuth.as_view(), name='proxy-auth'),
]

post_notifications_patterns = [
    path('mute/', MutePost.as_view(), name='mute-post'),
    path('unmute/', UnmutePost.as_view(), name='unmute-post'),
]

post_comment_reactions_patterns = [
    path('', PostCommentReactions.as_view(), name='post-comment-reactions'),
    path('emoji-count/', PostCommentReactionsEmojiCount.as_view(), name='post-comment-reactions-emoji-count'),
    path('<int:post_comment_reaction_id>/', PostCommentReactionItem.as_view(), name='post-comment-reaction'), ]

post_comment_notifications_patterns = [
    path('mute/', MutePostComment.as_view(), name='mute-post-comment'),
    path('unmute/', UnmutePostComment.as_view(), name='unmute-post-comment'),
]

post_comment_patterns = [
    path('', PostCommentItem.as_view(), name='post-comment'),
    path('translate/', TranslatePostComment.as_view(), name='translate-post-comment'),
    path('report/', ReportPostComment.as_view(), name='report-post-comment'),
    path('replies/', PostCommentReplies.as_view(), name='post-comment-replies'),
    path('reactions/', include(post_comment_reactions_patterns), name='post-comment-replies'),
    path('notifications/', include(post_comment_notifications_patterns)),
]