fix: file structuring (#2797)

* fix: file structure changes

* fix: pages update

* fix: license imports changed
This commit is contained in:
Bavisetti Narayan 2023-11-20 11:59:20 +05:30 committed by sriram veeraghanta
parent 728213e3fd
commit ced5bfd930
113 changed files with 2306 additions and 1261 deletions

View file

@ -0,0 +1,38 @@
from django.urls import path
from plane.app.views import StateViewSet
urlpatterns = [
path(
"workspaces/<str:slug>/projects/<uuid:project_id>/states/",
StateViewSet.as_view(
{
"get": "list",
"post": "create",
}
),
name="project-states",
),
path(
"workspaces/<str:slug>/projects/<uuid:project_id>/states/<uuid:pk>/",
StateViewSet.as_view(
{
"get": "retrieve",
"patch": "partial_update",
"delete": "destroy",
}
),
name="project-state",
),
path(
"workspaces/<str:slug>/projects/<uuid:project_id>/states/<uuid:pk>/mark-default/",
StateViewSet.as_view(
{
"post": "mark_as_default",
}
),
name="project-state",
),
]