mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
54 lines
1.3 KiB
Python
54 lines
1.3 KiB
Python
|
from django.urls import path
|
||
|
|
||
|
|
||
|
from plane.api.views import (
|
||
|
InboxViewSet,
|
||
|
InboxIssueViewSet,
|
||
|
)
|
||
|
|
||
|
|
||
|
urlpatterns = [
|
||
|
path(
|
||
|
"workspaces/<str:slug>/projects/<uuid:project_id>/inboxes/",
|
||
|
InboxViewSet.as_view(
|
||
|
{
|
||
|
"get": "list",
|
||
|
"post": "create",
|
||
|
}
|
||
|
),
|
||
|
name="inbox",
|
||
|
),
|
||
|
path(
|
||
|
"workspaces/<str:slug>/projects/<uuid:project_id>/inboxes/<uuid:pk>/",
|
||
|
InboxViewSet.as_view(
|
||
|
{
|
||
|
"get": "retrieve",
|
||
|
"patch": "partial_update",
|
||
|
"delete": "destroy",
|
||
|
}
|
||
|
),
|
||
|
name="inbox",
|
||
|
),
|
||
|
path(
|
||
|
"workspaces/<str:slug>/projects/<uuid:project_id>/inboxes/<uuid:inbox_id>/inbox-issues/",
|
||
|
InboxIssueViewSet.as_view(
|
||
|
{
|
||
|
"get": "list",
|
||
|
"post": "create",
|
||
|
}
|
||
|
),
|
||
|
name="inbox-issue",
|
||
|
),
|
||
|
path(
|
||
|
"workspaces/<str:slug>/projects/<uuid:project_id>/inboxes/<uuid:inbox_id>/inbox-issues/<uuid:pk>/",
|
||
|
InboxIssueViewSet.as_view(
|
||
|
{
|
||
|
"get": "retrieve",
|
||
|
"patch": "partial_update",
|
||
|
"delete": "destroy",
|
||
|
}
|
||
|
),
|
||
|
name="inbox-issue",
|
||
|
),
|
||
|
]
|