ccdb-api/ccdb/users/urls.py
Matthew Dillon 7ba937ef66 INITIAL
2016-01-19 15:10:09 -07:00

14 lines
516 B
Python

# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from django.conf.urls import url
from . import views
urlpatterns = [
url(regex=r'^$', view=views.UserListView.as_view(), name='list'),
url(regex=r'^redirect/$', view=views.UserRedirectView.as_view(), name='redirect'),
url(regex=r'^(?P<username>[\w.@+-]+)/$', view=views.UserDetailView.as_view(), name='detail'),
url(regex=r'^(?P<username>[\w.@+-]+)/update/$', view=views.UserUpdateView.as_view(), name='update'),
]