Add root API showing the new endpoints.

Signed-off-by: Michael Price <loneviking72@gmail.com>
This commit is contained in:
Michael Price
2018-03-09 04:11:28 -04:00
committed by Roberto Rosario
parent afd4748426
commit 49bb7c879e
4 changed files with 43 additions and 2 deletions

View File

@@ -2,10 +2,11 @@ from __future__ import unicode_literals
from django.conf.urls import include, url
from .api_views import BrowseableObtainAuthToken
from .api_views import APIRoot, BrowseableObtainAuthToken
api_urls = [
url(r'^$', APIRoot.as_view(), name='api_root'),
url(
r'^auth/token/obtain/$', BrowseableObtainAuthToken.as_view(),
name='auth_token_obtain'