from django.urls import path

from . import views

app_name = "api"

urlpatterns = [
    path("health/", views.HealthView.as_view(), name="health"),
    # content
    path("products/", views.ProductListView.as_view(), name="product-list"),
    path("products/<slug:slug>/", views.ProductDetailView.as_view(), name="product-detail"),
    path("founders/", views.FounderListView.as_view(), name="founder-list"),
    path("posts/", views.BlogPostListView.as_view(), name="post-list"),
    path("posts/<slug:slug>/", views.BlogPostDetailView.as_view(), name="post-detail"),
    path("jobs/", views.JobOpeningListView.as_view(), name="job-list"),
    # submissions
    path("contact/", views.ContactSubmissionView.as_view(), name="contact"),
    path("newsletter/", views.NewsletterSignupView.as_view(), name="newsletter"),
    path("apply/", views.JobApplicationView.as_view(), name="apply"),
]
