19 lines
853 B
Python
19 lines
853 B
Python
|
|
from django.urls import path
|
||
|
|
from . import views
|
||
|
|
|
||
|
|
# Admin CRUD endpoints — mounted at /api/v1/ad-control/
|
||
|
|
urlpatterns = [
|
||
|
|
# Surfaces
|
||
|
|
path('surfaces/', views.SurfaceListView.as_view(), name='ad-surfaces'),
|
||
|
|
|
||
|
|
# Placements CRUD
|
||
|
|
path('placements/', views.PlacementListCreateView.as_view(), name='ad-placements'),
|
||
|
|
path('placements/<int:pk>/', views.PlacementDetailView.as_view(), name='ad-placement-detail'),
|
||
|
|
path('placements/<int:pk>/publish/', views.PlacementPublishView.as_view(), name='ad-placement-publish'),
|
||
|
|
path('placements/<int:pk>/unpublish/', views.PlacementUnpublishView.as_view(), name='ad-placement-unpublish'),
|
||
|
|
path('placements/reorder/', views.PlacementReorderView.as_view(), name='ad-placements-reorder'),
|
||
|
|
|
||
|
|
# Events picker
|
||
|
|
path('events/', views.PickerEventsView.as_view(), name='ad-picker-events'),
|
||
|
|
]
|