mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-07-16 02:16:16 +00:00
jira-15 dashboard api profile, default image, top leaderboard API
This commit is contained in:
@ -6,7 +6,8 @@ from rest_framework.decorators import api_view
|
||||
from rest_framework import routers
|
||||
from .views import (UserLogin, SendPhoneOtp, UserPhoneVerification, UserEmailVerification, ReSendEmailOtp,
|
||||
ForgotPasswordAPIView, ResetPasswordAPIView, ChangePasswordAPIView, UpdateProfileImage,
|
||||
GoogleLoginViewSet, SigninWithApple)
|
||||
GoogleLoginViewSet, SigninWithApple, ProfileAPIViewSet, UploadImageAPIViewSet,
|
||||
DefaultImageAPIViewSet)
|
||||
"""Router"""
|
||||
router = routers.SimpleRouter()
|
||||
|
||||
@ -18,6 +19,9 @@ router.register('google-login', GoogleLoginViewSet, basename='admin')
|
||||
# router.register('user-phone-verification', UserPhoneVerification, basename='user-phone-verification')
|
||||
router.register('user-email-verification', UserEmailVerification, basename='user-email-verification')
|
||||
router.register('resend-email-otp', ReSendEmailOtp, basename='resend-email-otp')
|
||||
router.register('profile', ProfileAPIViewSet, basename='profile')
|
||||
router.register('upload-default-task-image', UploadImageAPIViewSet, basename='upload-default-task-image')
|
||||
router.register('default-task-image', DefaultImageAPIViewSet, basename='default-task-image')
|
||||
urlpatterns = [
|
||||
path('api/v1/', include(router.urls)),
|
||||
path('api/v1/forgot-password/', ForgotPasswordAPIView.as_view()),
|
||||
|
Reference in New Issue
Block a user