first commit
This commit is contained in:
25
core/apps/accounts/urls.py
Normal file
25
core/apps/accounts/urls.py
Normal file
@@ -0,0 +1,25 @@
|
||||
from .views import ParticipantView
|
||||
|
||||
"""
|
||||
Accounts app urls
|
||||
"""
|
||||
from django.urls import include, path
|
||||
from rest_framework.routers import DefaultRouter
|
||||
from rest_framework_simplejwt import views as jwt_views
|
||||
|
||||
from .views import ChangePasswordView, MeView, RegisterView, ResetPasswordView
|
||||
from .views.likes import LikesView
|
||||
|
||||
router = DefaultRouter()
|
||||
router.register("participant", ParticipantView, basename="participant")
|
||||
router.register("auth", RegisterView, basename="auth")
|
||||
router.register("auth", ResetPasswordView, basename="reset-password")
|
||||
router.register("auth", MeView, basename="me")
|
||||
router.register("auth", ChangePasswordView, basename="change-password")
|
||||
router.register("likes", LikesView, basename="likes")
|
||||
urlpatterns = [
|
||||
path("", include(router.urls)),
|
||||
path("auth/token/", jwt_views.TokenObtainPairView.as_view(), name="token_obtain_pair"),
|
||||
path("auth/token/verify/", jwt_views.TokenVerifyView.as_view(), name="token_verify"),
|
||||
path("auth/token/refresh/", jwt_views.TokenRefreshView.as_view(), name="token_refresh"),
|
||||
]
|
||||
Reference in New Issue
Block a user