from django.urls import path
from . import views

urlpatterns = [
    path('', views.home, name='home'),
    path('wardrobe/', views.wardrobe_list, name='wardrobe_list'),
    path('wardrobe/add/', views.add_wardrobe_item, name='add_wardrobe_item'),
    path('wardrobe/<int:pk>/', views.wardrobe_item_detail, name='wardrobe_item_detail'),
    path('wardrobe/<int:pk>/delete/', views.delete_wardrobe_item, name='delete_wardrobe_item'),
    path('accessories/', views.accessory_list, name='accessory_list'),
    path('accessories/add/', views.add_accessory_item, name='add_accessory_item'),
    path('accessories/<int:pk>/', views.accessory_item_detail, name='accessory_item_detail'),
    path('accessories/<int:pk>/delete/', views.delete_accessory_item, name='delete_accessory_item'),
    path('outfits/', views.outfit_list, name='outfit_list'),
    path('outfits/new/', views.new_fit, name='new_fit'),
    path('outfits/<int:pk>/delete/', views.delete_outfit, name='delete_outfit'),
    path('assign-outfit/', views.assign_outfit, name='assign_outfit'),
    path('remove-assignment/<str:date>/', views.remove_assignment, name='remove_assignment'),
    path('ajax/get-subcategories/', views.get_subcategories, name='get_subcategories'),
]
