cash-stacks/server/server/urls.py

17 lines
555 B
Python

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)
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'))
]