urls.py 506 B

12345678910111213141516
  1. # Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug
  2. # Copyright: (c) <spug.dev@gmail.com>
  3. # Released under the AGPL-3.0 License.
  4. from django.conf.urls import url
  5. from apps.account.views import *
  6. from apps.account.history import *
  7. urlpatterns = [
  8. url(r'^login/$', login),
  9. url(r'^logout/$', logout),
  10. url(r'^user/$', UserView.as_view()),
  11. url(r'^role/$', RoleView.as_view()),
  12. url(r'^self/$', SelfView.as_view()),
  13. url(r'^login/history/$', HistoryView.as_view())
  14. ]