from django.urls import path
from . import views

urlpatterns = [
    #static routes
    path('', views.home , name='home'),
    path('about/' , views.about , name='about'),
    # bird routes
    path('birds/' , views.birds_index , name='index'),
    path('birds/<int:bird_id>/' , views.birds_detail , name='detail'),
    path('birds/new/', views.add_bird, name='add_bird'),
    path('birds/<int:bird_id>/delete/', views.delete_bird, name='delete_bird'),
    path('birds/<int:bird_id>/edit/', views.edit_bird, name='edit_bird'),
    # bird spottings
    path('birds/<int:bird_id>/add_spotting/' , views.add_spotting, name='add_spotting'),
    # bird habitats
    path('birds/<int:bird_id>/assoc_habitat/<int:habitat_id>/', views.assoc_habitat, name='assoc_habitat'),
    path('birds/<int:bird_id>/remove_habitat/<int:habitat_id>/', views.remove_habitat, name='remove_habitat'),
    #auth
    path('accounts/signup', views.signup, name='signup'),
]
