You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
712 B
19 lines
712 B
from django.conf.urls import url |
|
from django.contrib import admin |
|
from django.urls import include, path |
|
from rest_framework import routers |
|
from .api import views |
|
|
|
router = routers.DefaultRouter() |
|
router.register(r'users', views.UserViewSet) |
|
router.register(r'accounts', views.AccountViewSet) |
|
router.register(r'stacks', views.StackViewSet) |
|
router.register(r'transactions', views.TransactionViewSet) |
|
|
|
urlpatterns = [ |
|
path('', include(router.urls)), |
|
path('admin/', admin.site.urls), |
|
path('api-auth/', include('rest_framework.urls', namespace='rest_framework')), |
|
path('dj-rest-auth/', include('dj_rest_auth.urls')), |
|
path('dj-rest-auth/registration/', include('dj_rest_auth.registration.urls')) |
|
]
|
|
|