diff --git a/backend/api/urls.py b/backend/api/urls.py index 7d9a366..e5c2f7a 100644 --- a/backend/api/urls.py +++ b/backend/api/urls.py @@ -10,11 +10,11 @@ from rest_framework_simplejwt.views import ( urlpatterns = [ path('charity/', 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/', 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/', views.UserProfileDetail.as_view()), - path('token/', TokenObtainPairView.as_view(), name='token_obtain_pair'), + path('profile', views.UserProfileDetail.as_view()), + path('token', TokenObtainPairView.as_view(), name='token_obtain_pair'), path('token/refresh/', TokenRefreshView.as_view(), name='token_refresh'), ]