mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
47 lines
1.2 KiB
Python
47 lines
1.2 KiB
Python
from django.urls import path
|
|
|
|
|
|
from plane.app.views import (
|
|
AnalyticsEndpoint,
|
|
AnalyticViewViewset,
|
|
SavedAnalyticEndpoint,
|
|
ExportAnalyticsEndpoint,
|
|
DefaultAnalyticsEndpoint,
|
|
)
|
|
|
|
|
|
urlpatterns = [
|
|
path(
|
|
"workspaces/<str:slug>/analytics/",
|
|
AnalyticsEndpoint.as_view(),
|
|
name="plane-analytics",
|
|
),
|
|
path(
|
|
"workspaces/<str:slug>/analytic-view/",
|
|
AnalyticViewViewset.as_view({"get": "list", "post": "create"}),
|
|
name="analytic-view",
|
|
),
|
|
path(
|
|
"workspaces/<str:slug>/analytic-view/<uuid:pk>/",
|
|
AnalyticViewViewset.as_view(
|
|
{"get": "retrieve", "patch": "partial_update", "delete": "destroy"}
|
|
),
|
|
name="analytic-view",
|
|
),
|
|
path(
|
|
"workspaces/<str:slug>/saved-analytic-view/<uuid:analytic_id>/",
|
|
SavedAnalyticEndpoint.as_view(),
|
|
name="saved-analytic-view",
|
|
),
|
|
path(
|
|
"workspaces/<str:slug>/export-analytics/",
|
|
ExportAnalyticsEndpoint.as_view(),
|
|
name="export-analytics",
|
|
),
|
|
path(
|
|
"workspaces/<str:slug>/default-analytics/",
|
|
DefaultAnalyticsEndpoint.as_view(),
|
|
name="default-analytics",
|
|
),
|
|
]
|