urls.py 568 B

12345678910111213141516
  1. # coding: utf-8
  2. from __future__ import print_function
  3. from __future__ import absolute_import
  4. from __future__ import division
  5. from __future__ import unicode_literals
  6. from django.conf.urls import *
  7. from backend.mixins import VisitorTemplateView
  8. from . import views
  9. urlpatterns = [
  10. url(r'^$', VisitorTemplateView.as_view(template_name="api/doc.html"), name="api_doc"),
  11. url(r'^people$', views.People.as_view(), name="api_people"),
  12. url(r'^status$', views.Status.as_view(), name="api_status"),
  13. url(r'^whoami$', views.Whoami.as_view(), name="api_whoami"),
  14. ]