35 lines
1.1 KiB
Python
35 lines
1.1 KiB
Python
# Copyright (c) 2023-present Plane Software, Inc. and contributors
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
# See the LICENSE file for details.
|
|
|
|
from django.urls import path
|
|
|
|
from plane.api.views import (
|
|
ProjectListCreateAPIEndpoint,
|
|
ProjectDetailAPIEndpoint,
|
|
ProjectArchiveUnarchiveAPIEndpoint,
|
|
ProjectSummaryAPIEndpoint,
|
|
)
|
|
|
|
urlpatterns = [
|
|
path(
|
|
"workspaces/<str:slug>/projects/",
|
|
ProjectListCreateAPIEndpoint.as_view(http_method_names=["get", "post"]),
|
|
name="project",
|
|
),
|
|
path(
|
|
"workspaces/<str:slug>/projects/<uuid:pk>/",
|
|
ProjectDetailAPIEndpoint.as_view(http_method_names=["get", "patch", "delete"]),
|
|
name="project",
|
|
),
|
|
path(
|
|
"workspaces/<str:slug>/projects/<uuid:project_id>/archive/",
|
|
ProjectArchiveUnarchiveAPIEndpoint.as_view(http_method_names=["post", "delete"]),
|
|
name="project-archive-unarchive",
|
|
),
|
|
path(
|
|
"workspaces/<str:slug>/projects/<uuid:project_id>/summary/",
|
|
ProjectSummaryAPIEndpoint.as_view(http_method_names=["get"]),
|
|
name="project-summary",
|
|
),
|
|
]
|