from django.urls import path from .views.user import SendUserEmailAPIView, UserLoginOrRegisterAPIView, UserLoginAPIView, LoginView, ChangePasswordAPIView, UserUpdateAPIView, ForgotPasswordSendCodeAPIView, ForgotPasswordResetAPIView, UploadAvatarAPIView, PublicProfileAPIView from .views.qr_login import QRTokenView, QRStatusView, QRScanView, QRConfirmView, QRCancelView from .views.wallet import ( WalletBalanceAPIView, WalletTransactionsAPIView, EarnPointsAPIView, EarnCoinsAPIView, SpendPointsAPIView, SpendCoinsAPIView, CheckinStatusAPIView, CheckinAPIView, ) from .views.tasks import ( TaskListAPIView, TaskTrackAPIView, TaskClaimAPIView, UserLevelAPIView, ) from .views.email import SendChangeEmailCodeAPIView, ChangeEmailAPIView from .views.phone import SendPhoneCodeAPIView, ChangePhoneAPIView from .views.captcha import CaptchaAPIView from .views.slider_captcha import SliderCaptchaGenerateView, SliderCaptchaVerifyView from .views.blacklist import BlacklistListAPIView, BlacklistAddAPIView, BlacklistRemoveAPIView, BlacklistCheckAPIView from .views.login_record import LoginRecordListAPIView, LoginRecordDeleteAPIView, LoginRecordClearAPIView from .views.invitation import InviteCodeAPIView, InviteStatsAPIView, InviteRecordsAPIView from .views.user import FollowToggleView from .views.favorites import MyFavoritesView from .views.region import RegionListView from .views.activities import UserActivityView from .views.settings import ( UploadCoverAPIView, PrivacySettingsAPIView, NotificationSettingsAPIView, UserDeviceListView, UserDeviceRemoveView, UserDeviceClearOthersView, ) from .views.index import user_index urlpatterns = [ path('', user_index, name='user_index'), path('send-user-email/', SendUserEmailAPIView.as_view(), name='send_user_email'), path('send_user_email/', SendUserEmailAPIView.as_view(), name='send_user_email_old'), path('login-register/', UserLoginOrRegisterAPIView.as_view(), name='user_login_register'), path('user_login_or_register/', UserLoginOrRegisterAPIView.as_view(), name='user_login_register_old'), path('user-login/', UserLoginAPIView.as_view(), name='user_login'), path('user_login/', UserLoginAPIView.as_view(), name='user_login_old'), path('login/', LoginView.as_view(), name='login_with_slider'), path('change-password/', ChangePasswordAPIView.as_view(), name='change_password'), path('change_password/', ChangePasswordAPIView.as_view(), name='change_password_old'), path('profile/', UserUpdateAPIView.as_view(), name='user_profile'), path('update-profile/', UserUpdateAPIView.as_view(), name='user_update_profile'), path('wallet/balance/', WalletBalanceAPIView.as_view(), name='wallet_balance'), path('wallet/transactions/', WalletTransactionsAPIView.as_view(), name='wallet_transactions'), path('wallet/earn/points/', EarnPointsAPIView.as_view(), name='wallet_earn_points'), path('wallet/earn/coins/', EarnCoinsAPIView.as_view(), name='wallet_earn_coins'), path('wallet/spend/points/', SpendPointsAPIView.as_view(), name='wallet_spend_points'), path('wallet/spend/coins/', SpendCoinsAPIView.as_view(), name='wallet_spend_coins'), path('wallet/checkin/status/', CheckinStatusAPIView.as_view(), name='wallet_checkin_status'), path('wallet/checkin/', CheckinAPIView.as_view(), name='wallet_checkin'), path('send-email-code/', SendChangeEmailCodeAPIView.as_view(), name='send_email_code'), path('change-email/', ChangeEmailAPIView.as_view(), name='change_email'), path('forgot-password/send-code/', ForgotPasswordSendCodeAPIView.as_view(), name='forgot_password_send_code'), path('forgot-password/reset/', ForgotPasswordResetAPIView.as_view(), name='forgot_password_reset'), path('send-phone-code/', SendPhoneCodeAPIView.as_view(), name='send_phone_code'), path('change-phone/', ChangePhoneAPIView.as_view(), name='change_phone'), path('captcha/', CaptchaAPIView.as_view(), name='captcha'), path('slider-captcha/generate/', SliderCaptchaGenerateView.as_view(), name='slider-captcha-generate'), path('slider-captcha/verify/', SliderCaptchaVerifyView.as_view(), name='slider-captcha-verify'), path('upload-avatar/', UploadAvatarAPIView.as_view(), name='upload_avatar'), path('blacklist/', BlacklistListAPIView.as_view(), name='blacklist'), path('blacklist/add/', BlacklistAddAPIView.as_view(), name='blacklist_add'), path('blacklist//remove/', BlacklistRemoveAPIView.as_view(), name='blacklist_remove'), path('blacklist/check//', BlacklistCheckAPIView.as_view(), name='blacklist_check'), path('login-records/', LoginRecordListAPIView.as_view(), name='login_records'), path('login-records//delete/', LoginRecordDeleteAPIView.as_view(), name='login_record_delete'), path('login-records/clear/', LoginRecordClearAPIView.as_view(), name='login_records_clear'), path('public-profile//', PublicProfileAPIView.as_view(), name='public_profile'), path('invite/code/', InviteCodeAPIView.as_view(), name='invite_code'), path('invite/stats/', InviteStatsAPIView.as_view(), name='invite_stats'), path('invite/records/', InviteRecordsAPIView.as_view(), name='invite_records'), path('tasks/', TaskListAPIView.as_view(), name='task_list'), path('tasks/track/', TaskTrackAPIView.as_view(), name='task_track'), path('tasks/claim//', TaskClaimAPIView.as_view(), name='task_claim'), path('level/', UserLevelAPIView.as_view(), name='user_level'), path('favorites/', MyFavoritesView.as_view(), name='my_favorites'), path('regions/', RegionListView.as_view(), name='region_list'), path('qr-token/', QRTokenView.as_view(), name='qr_token'), path('qr-status//', QRStatusView.as_view(), name='qr_status'), path('qr-scan/', QRScanView.as_view(), name='qr_scan'), path('qr-confirm/', QRConfirmView.as_view(), name='qr_confirm'), path('qr-cancel/', QRCancelView.as_view(), name='qr_cancel'), path('follow//', FollowToggleView.as_view(), name='follow_toggle'), path('activities/', UserActivityView.as_view(), name='user_activities'), path('profile/cover/', UploadCoverAPIView.as_view(), name='upload_cover'), path('privacy/', PrivacySettingsAPIView.as_view(), name='privacy_settings'), path('notification-settings/', NotificationSettingsAPIView.as_view(), name='notification_settings'), path('devices/', UserDeviceListView.as_view(), name='user_devices'), path('devices//remove/', UserDeviceRemoveView.as_view(), name='user_device_remove'), path('devices/clear-others/', UserDeviceClearOthersView.as_view(), name='user_device_clear_others'), ]