ccdb-api/ccdb/api/urls.py
Matthew Dillon 983ce6f021 TST: Travis/Coveralls setup (#10)
- add travis.yml
- linting
- coveralls
- readme
2016-08-28 16:34:57 -07:00

19 lines
557 B
Python

from django.conf.urls import url, include
from rest_framework import routers
from . import views as api_v
router = routers.DefaultRouter()
router.register(r'administrative-urls', api_v.AdminURLs, base_name='adminurls')
urlpatterns = [
url(r'^auth/login/', api_v.Login.as_view()),
url(r'^auth/password/reset/confirm/',
api_v.PasswordResetConfirm.as_view()),
url(r'^auth/password/reset/', api_v.PasswordReset.as_view()),
url(r'^auth/', include('djoser.urls.authtoken')),
url(r'^v1/', include(router.urls, namespace='v1')),
]