mirror of
https://github.com/Rushilwiz/rounded.git
synced 2025-04-17 17:40:16 -04:00
17 lines
651 B
Python
17 lines
651 B
Python
from django.urls import path
|
|
from . import views
|
|
|
|
from rest_framework_simplejwt.views import (
|
|
TokenObtainPairView,
|
|
TokenRefreshView,
|
|
)
|
|
|
|
|
|
urlpatterns = [
|
|
path('profile/create', views.ConsumerCreate.as_view()),
|
|
path('profile/', views.ConsumerDetail.as_view()),
|
|
path('foundation/', views.FoundationViewSet.as_view({'get': 'list', 'post': 'create'})),
|
|
path('foundation/<int:pk>/', views.FoundationViewSet.as_view({'get': 'retrieve', 'put': 'update', 'delete': 'destroy'})),
|
|
path('token/', TokenObtainPairView.as_view(), name='token_obtain_pair'),
|
|
path('token/refresh/', TokenRefreshView.as_view(), name='token_refresh'),
|
|
] |