Esempio n. 1
0
    ProfilePostsExcludedCommunities, SearchProfilePostsExcludedCommunities, TopPostsExcludedCommunities, \
    SearchTopPostsExcludedCommunities, ProfilePostsExcludedCommunity, TopPostsExcludedCommunity, PreviewLink, \
    LinkIsPreviewable
from openbook_importer.views import ImportItem

auth_auth_patterns = [
    path('register/', Register.as_view(), name='register-user'),
    path('register/verify-token/',
         VerifyRegistrationToken.as_view(),
         name='verify-register-token'),
    path('login/', Login.as_view(), name='login-user'),
    path('username-check/', UsernameCheck.as_view(), name='username-check'),
    path('email-check/', EmailCheck.as_view(), name='email-check'),
    path('email/verify/', EmailVerify.as_view(), name='email-verify'),
    path('password/reset/',
         PasswordResetRequest.as_view(),
         name='request-password-reset'),
    path('password/verify/',
         PasswordResetVerify.as_view(),
         name='verify-reset-password'),
]

auth_user_patterns = [
    path('', AuthenticatedUser.as_view(), name='authenticated-user'),
    path('settings/',
         AuthenticatedUserSettings.as_view(),
         name='authenticated-user-settings'),
    path('delete/',
         DeleteAuthenticatedUser.as_view(),
         name='delete-authenticated-user'),
    path('notifications-settings/',
Esempio n. 2
0
from openbook_posts.views.post_comment.views import PostCommentItem, MutePostComment, UnmutePostComment, \
    TranslatePostComment
from openbook_posts.views.post_comments.views import PostComments, PostCommentsDisable, PostCommentsEnable
from openbook_posts.views.post_media.views import PostMedia
from openbook_posts.views.post_reaction.views import PostReactionItem
from openbook_posts.views.post_reactions.views import PostReactions, PostReactionsEmojiCount, PostReactionEmojiGroups
from openbook_posts.views.posts.views import Posts, TrendingPosts, TopPosts
from openbook_importer.views import ImportItem

auth_auth_patterns = [
    path('register/', Register.as_view(), name='register-user'),
    path('login/', Login.as_view(), name='login-user'),
    path('username-check/', UsernameCheck.as_view(), name='username-check'),
    path('email-check/', EmailCheck.as_view(), name='email-check'),
    path('email/verify/', EmailVerify.as_view(), name='email-verify'),
    path('password/reset/', PasswordResetRequest.as_view(), name='request-password-reset'),
    path('password/verify/', PasswordResetVerify.as_view(), name='verify-reset-password'),
]

auth_user_patterns = [
    path('', AuthenticatedUser.as_view(), name='authenticated-user'),
    path('settings/', AuthenticatedUserSettings.as_view(), name='authenticated-user-settings'),
    path('delete/', DeleteAuthenticatedUser.as_view(), name='delete-authenticated-user'),
    path('notifications-settings/', AuthenticatedUserNotificationsSettings.as_view(),
         name='authenticated-user-notifications-settings'),
    path('accept-guidelines/', AuthenticatedUserAcceptGuidelines.as_view(),
         name='authenticated-user-accept-guidelines'),
    path('languages/', AuthenticatedUserLanguage.as_view(), name='user-language'),
]

auth_users_user_patterns = [