mirror of
https://github.com/Rushilwiz/reinvest.git
synced 2025-04-04 20:40:19 -04:00
17 lines
664 B
Python
17 lines
664 B
Python
from rest_framework_jwt.views import obtain_jwt_token
|
|
|
|
from . import views
|
|
|
|
from django.urls import path, include
|
|
from rest_framework.routers import DefaultRouter
|
|
|
|
urlpatterns = [
|
|
path('charity/<int:pk>', views.CharityViewSet.as_view({'get': 'retrieve'})),
|
|
path('charity', views.CharityViewSet.as_view({'get': 'list', 'post': 'create'})),
|
|
path('stock/<uuid:pk>', views.StockViewSet.as_view({'get': 'retrieve'})),
|
|
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', obtain_jwt_token)
|
|
]
|