2026-04-06 23:50:24 +03:30
|
|
|
from django.urls import path
|
|
|
|
|
|
2026-05-05 01:46:10 +03:30
|
|
|
from .views import FarmDetailView, FarmDataUpsertView, PlantCatalogSyncView, SensorParameterCreateView
|
2026-04-06 23:50:24 +03:30
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
|
path(
|
|
|
|
|
"<uuid:farm_uuid>/detail/",
|
|
|
|
|
FarmDetailView.as_view(),
|
|
|
|
|
name="farm-detail",
|
|
|
|
|
),
|
|
|
|
|
path(
|
|
|
|
|
"",
|
|
|
|
|
FarmDataUpsertView.as_view(),
|
|
|
|
|
name="farm-data-upsert",
|
|
|
|
|
),
|
|
|
|
|
path(
|
|
|
|
|
"parameters/",
|
|
|
|
|
SensorParameterCreateView.as_view(),
|
|
|
|
|
name="farm-parameter-create",
|
|
|
|
|
),
|
2026-05-05 01:46:10 +03:30
|
|
|
path(
|
|
|
|
|
"plants/sync/",
|
|
|
|
|
PlantCatalogSyncView.as_view(),
|
|
|
|
|
name="farm-data-plant-sync",
|
|
|
|
|
),
|
2026-04-06 23:50:24 +03:30
|
|
|
]
|