Files
kkpab-site/backend/content/urls.py
T

27 lines
959 B
Python

from django.urls import path
from .views import (
ContactMessageCreateAPIView,
DoctorListAPIView,
DocumentListAPIView,
HomeAPIView,
PageDetailAPIView,
PageListAPIView,
ServiceDetailAPIView,
ServiceListAPIView,
SiteSettingsAPIView,
)
urlpatterns = [
path("home/", HomeAPIView.as_view(), name="home"),
path("site/", SiteSettingsAPIView.as_view(), name="site-settings"),
path("pages/", PageListAPIView.as_view(), name="page-list"),
path("pages/<slug:slug>/", PageDetailAPIView.as_view(), name="page-detail"),
path("services/", ServiceListAPIView.as_view(), name="service-list"),
path("services/<slug:slug>/", ServiceDetailAPIView.as_view(), name="service-detail"),
path("doctors/", DoctorListAPIView.as_view(), name="doctor-list"),
path("documents/", DocumentListAPIView.as_view(), name="document-list"),
path("contact/", ContactMessageCreateAPIView.as_view(), name="contact-create"),
]