mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-29 07:53:23 +00:00
14 lines
543 B
Python
14 lines
543 B
Python
from django.urls import path, re_path
|
|
|
|
from .views import (
|
|
DomainListCreateView, DomainDetailView,
|
|
CategoryListCreateView, CategoryDetailView,
|
|
)
|
|
|
|
urlpatterns = [
|
|
re_path(r'^domains$', DomainListCreateView.as_view(), name="domain_list_create"),
|
|
re_path(r'^domains/(?P<id>[0-9]+)$', DomainDetailView.as_view(), name="domain_detail"),
|
|
|
|
re_path(r'^categories$', CategoryListCreateView.as_view(), name="category_list_create"),
|
|
re_path(r'^categories/(?P<id>[0-9]+)$', CategoryDetailView.as_view(), name="category_detail"),
|
|
] |