2026-04-02 23:25:39 +03:30
|
|
|
from django.urls import path
|
|
|
|
|
|
2026-04-03 15:15:41 +03:30
|
|
|
from .views import (
|
|
|
|
|
FarmActiveView,
|
|
|
|
|
FarmDeactiveView,
|
|
|
|
|
FarmDetailView,
|
|
|
|
|
FarmListCreateView,
|
|
|
|
|
FarmTypeListView,
|
|
|
|
|
FarmTypeProductsView,
|
|
|
|
|
)
|
2026-04-02 23:25:39 +03:30
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
|
path("active/", FarmActiveView.as_view(), name="farm-hub-active"),
|
|
|
|
|
path("deactive/", FarmDeactiveView.as_view(), name="farm-hub-deactive"),
|
2026-04-03 15:15:41 +03:30
|
|
|
path("farm-types/", FarmTypeListView.as_view(), name="farm-type-list"),
|
|
|
|
|
path("farm-types/<uuid:farm_type_uuid>/products/", FarmTypeProductsView.as_view(), name="farm-type-products"),
|
2026-04-02 23:25:39 +03:30
|
|
|
path("<uuid:farm_uuid>/", FarmDetailView.as_view(), name="farm-hub-detail"),
|
|
|
|
|
path("", FarmListCreateView.as_view(), name="farm-hub-list"),
|
|
|
|
|
]
|