You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
562 B

from django.conf.urls import url
from .views import MemberFormView, MemberSearchView, MemberSignIn, Members, MemberViewSet
apiRoutes = (
(r'members', MemberViewSet),
)
urlpatterns = [
9 years ago
url(r'^new/$', MemberFormView.as_view(), name='member_new'),
url(r'^search/(?P<query>[\w@\.\+]+)/$', MemberSearchView.as_view(), name='member_search'),
9 years ago
url(r'^edit/(?P<member_id>[0-9]+)/$', MemberFormView.as_view(), name='member_edit'),
url(r'^signin/$', MemberSignIn.as_view(), name='member_signin'),
url(r'^$', Members.as_view(), name='members'),
]