from django.urls import path
from .views import (
    OpportunityListView,
    OpportunityDetailView,
    OpportunityCreateView,
    OpportunityUpdateView,
    OpportunityDeleteView,
)

app_name = 'opportunities'

urlpatterns = [
    path('', OpportunityListView.as_view(), name='opportunity_list'),
    path('<int:pk>/', OpportunityDetailView.as_view(), name='opportunity_detail'),
    path('create/', OpportunityCreateView.as_view(), name='opportunity_create'),
    path('<int:pk>/update/', OpportunityUpdateView.as_view(), name='opportunity_update'),
    path('<int:pk>/delete/', OpportunityDeleteView.as_view(), name='opportunity_delete'),
]
