from django.conf.urls import url

from . import views

urlpatterns = [
    url(r'^$', views.index, name='index'),
    url(r'^catalog/$', views.catalog, name="catalog"),
    # url(r'^catalog/(?P<search_word>[\w|\W]+)/$', views.search, name="search"),
    url(r'^join/(?P<shirt_id>[\w|\W]+)/$', views.join, name="join"),
    url(r'^buy/(?P<shirt_id>[\w|\W]+)/$', views.buy, name="buy"),
    url(r'^signup/', views.signup, name="signup"),
    url(r'^logout/', views.logout, name="logout"),
    url(r'^login/', views.login, name="login"),
    url(r'^comment_join/(?P<comment_shirt_id>[\w|\W]+)/$', views.comment_join, name="comment_join"),
    url(r'^like_join/(?P<like_shirt_id>[\w|\W]+)/$', views.like_join, name="like_join"),
    url(r'^comment_buy/(?P<comment_shirt_id>[\w|\W]+)/$', views.comment_buy, name="comment_buy"),
    url(r'^like_buy/(?P<like_shirt_id>[\w|\W]+)/$', views.like_buy, name="like_buy"),
    url(r'^add_to_cart/(?P<add_shirt_id>[\w|\W]+)/$', views.add_to_cart, name="add_to_cart"),
    url(r'^delete_in_cart/(?P<shirt_id>[\w|\W]+)/$', views.delete_in_cart, name="delete_in_cart"),
    # url(r'^register/$', views.register, name="re")
    # status things
    url(r'^status/waiting/', views.status_waiting, name="status_waiting"),
    url(r'^status/in-progress/', views.status_in_progress, name="status_in_progress"),
    url(r'^status/purchase-history/', views.status_purchase_history, name="status_purchase_history"),

    url(r'^payment/(?P<shirt_id>[\w|\W]+)/$', views.payment, name="payment"),
    url(r'^checkout/$', views.checkout, name="checkout"),
    url(r'^cart/', views.cart, name="cart"),
    url(r'^design/', views.design, name="design"),
    url(r'^profile/', views.profile, name="profile"),
    url(r'^withdraw/', views.withdraw, name="withdraw"),

    url(r'^admin_login/', views.admin_login, name="admin_login"),
    url(r'^admin/$', views.admin, name="admin"),
    url(r'^admin/logout/$', views.admin_logout, name="admin_logout"),
]
