# coding=utf-8
from django.conf.urls import url
from . import views

urlpatterns = [
    url(r'^address/add/$', views.AddressAddView.as_view(), name='address-add'),
    url(r'^address/list/$', views.AddressListView.as_view(), name='address-list'),
    url(r'^address/(?P<pk>[-\w]+)/$', views.AddressDetailView.as_view(), name='address-detail'),
    url(r'^address/(?P<pk>[-\w]+)/edit/$', views.AddressUpdateView.as_view(), name='address-update'),
]

# urls for customer
urlpatterns += [
    url(r'^customer/add/$', views.CustomerAddView.as_view(), name='customer-add'),
    url(r'^customer/list/$', views.CustomerListView.as_view(), name='customer-list'),
    url(r'^customer/(?P<pk>[-\w]+)/$', views.CustomerDetailView.as_view(), name='customer-detail'),
    url(r'^customer/(?P<pk>[-\w]+)/edit/$', views.CustomerUpdateView.as_view(), name='customer-update'),
]
