You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
598 B
16 lines
598 B
from django.urls import path
|
|
from .views.category import HadisSectListView, HadisCategoryTreeView
|
|
from .views.hadis import HadisListView, HadisDetailView
|
|
|
|
|
|
urlpatterns = [
|
|
# Hadis Sect endpoints
|
|
path('categories/', HadisSectListView.as_view(), name='hadis-sect-list'),
|
|
|
|
# Hadis Category endpoints
|
|
path('categories/<int:sect_id>/', HadisCategoryTreeView.as_view(), name='hadis-category-tree'),
|
|
|
|
# Hadis endpoints
|
|
path('<int:category_id>/hadis/', HadisListView.as_view(), name='hadis-list'),
|
|
path('hadis/<int:hadis_id>/', HadisDetailView.as_view(), name='hadis-detail'),
|
|
]
|