2020-01-06 23:14:41 +00:00
|
|
|
from django.conf.urls import url
|
2020-01-06 21:58:38 +00:00
|
|
|
from django.contrib import admin
|
2020-01-06 22:36:12 +00:00
|
|
|
from django.urls import include, path
|
|
|
|
from rest_framework import routers
|
|
|
|
|
|
|
|
from .api import views
|
|
|
|
|
|
|
|
router = routers.DefaultRouter()
|
|
|
|
router.register(r'users', views.UserViewSet)
|
2020-01-06 21:58:38 +00:00
|
|
|
|
|
|
|
urlpatterns = [
|
2020-01-06 22:36:12 +00:00
|
|
|
path('', include(router.urls)),
|
2020-01-06 21:58:38 +00:00
|
|
|
path('admin/', admin.site.urls),
|
2020-01-06 23:05:19 +00:00
|
|
|
path('api-auth/', include('rest_framework.urls')),
|
2020-01-06 23:14:41 +00:00
|
|
|
url(r'^rest-auth/', include('rest_auth.urls')),
|
2020-01-07 08:23:06 +00:00
|
|
|
url(r'^rest-auth/registration/', include('rest_auth.registration.urls'))
|
2020-01-06 21:58:38 +00:00
|
|
|
]
|