fix(backend): fixed urls.py again

This commit is contained in:
Rushil Umaretiya 2021-01-31 10:34:06 -05:00
parent 38577a83f7
commit 0131361172
No known key found for this signature in database
GPG Key ID: 4E8FAF9C926AF959

View File

@ -10,11 +10,11 @@ from rest_framework_simplejwt.views import (
urlpatterns = [ urlpatterns = [
path('charity/<int:pk>', views.CharityViewSet.as_view({'get': 'retrieve'})), path('charity/<int:pk>', views.CharityViewSet.as_view({'get': 'retrieve'})),
path('charity', views.CharityViewSet.as_view({'get': 'list', 'post': 'create'})), path('charity/', views.CharityViewSet.as_view({'get': 'list', 'post': 'create'})),
path('stock/<uuid:pk>', views.StockViewSet.as_view({'get': 'retrieve'})), path('stock/<uuid:pk>', views.StockViewSet.as_view({'get': 'retrieve'})),
path('stock', views.StockViewSet.as_view({'get': 'list', 'post': 'create'})), path('stock/', views.StockViewSet.as_view({'get': 'list', 'post': 'create'})),
path('profile/create', views.UserProfileCreate.as_view()), path('profile/create', views.UserProfileCreate.as_view()),
path('profile', views.UserProfileDetail.as_view()), path('profile/', views.UserProfileDetail.as_view()),
path('token', TokenObtainPairView.as_view(), name='token_obtain_pair'), path('token/', TokenObtainPairView.as_view(), name='token_obtain_pair'),
path('token/refresh/', TokenRefreshView.as_view(), name='token_refresh'), path('token/refresh/', TokenRefreshView.as_view(), name='token_refresh'),
] ]