from django.urls import path
from . import views

urlpatterns = [
  path('', views.home, name='home'),
  path('about/', views.about, name='about'),
  path('animes/', views.animes_index, name='index'),
  path('animes/<int:anime_id>/', views.animes_detail, name='detail'),
  # path('anime/', AnimeList.as_view(), name='animes_index'),
# new route used to show a form and create an anime
  path('animes/create/', views.AnimeCreate.as_view(), name='animes_create'),

  path('animes/<int:pk>/update/', views.AnimeUpdate.as_view(), name='animes_update'),
  path('animes/<int:pk>/delete/', views.AnimeDelete.as_view(), name='animes_delete'),
  path('animes/<int:anime_id>/add_watching/', views.add_watching, name='add_watching'),
  path('animes/<int:anime_id>/add_photo/', views.add_photo, name='add_photo'),
  path('animes/<int:anime_id>/assoc_va/<int:va_id>/', views.assoc_va, name='assoc_va'),
]

