Add token auth and POST /login/ route
This commit is contained in:
@@ -32,7 +32,8 @@ router.register(r'user', views.UserViewSet, 'user')
|
||||
urlpatterns = [
|
||||
url(r'^', include(router.urls)),
|
||||
url(r'^admin/', admin.site.urls),
|
||||
url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework'))
|
||||
url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
|
||||
url(r'^login/', views.login)
|
||||
]
|
||||
|
||||
if settings.DEBUG is True:
|
||||
|
||||
Reference in New Issue
Block a user