mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
chore: changed url pratterns
This commit is contained in:
parent
edba70e9b1
commit
4c5c8a7483
@ -10,7 +10,7 @@ from plane.space.views import (
|
|||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path(
|
path(
|
||||||
"anchor/<uuid:anchor_id>/inboxes/<uuid:inbox_id>/inbox-issues/",
|
"anchor/<str:anchor>/inboxes/<uuid:inbox_id>/inbox-issues/",
|
||||||
InboxIssuePublicViewSet.as_view(
|
InboxIssuePublicViewSet.as_view(
|
||||||
{
|
{
|
||||||
"get": "list",
|
"get": "list",
|
||||||
@ -20,7 +20,7 @@ urlpatterns = [
|
|||||||
name="inbox-issue",
|
name="inbox-issue",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"anchor/<uuid:anchor_id>/inboxes/<uuid:inbox_id>/inbox-issues/<uuid:pk>/",
|
"anchor/<str:anchor>/inboxes/<uuid:inbox_id>/inbox-issues/<uuid:pk>/",
|
||||||
InboxIssuePublicViewSet.as_view(
|
InboxIssuePublicViewSet.as_view(
|
||||||
{
|
{
|
||||||
"get": "retrieve",
|
"get": "retrieve",
|
||||||
@ -31,7 +31,7 @@ urlpatterns = [
|
|||||||
name="inbox-issue",
|
name="inbox-issue",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"anchor/<uuid:anchor_id>/issues/<uuid:issue_id>/votes/",
|
"anchor/<str:anchor>/issues/<uuid:issue_id>/votes/",
|
||||||
IssueVotePublicViewSet.as_view(
|
IssueVotePublicViewSet.as_view(
|
||||||
{
|
{
|
||||||
"get": "list",
|
"get": "list",
|
||||||
|
@ -10,12 +10,12 @@ from plane.space.views import (
|
|||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path(
|
path(
|
||||||
"anchor/<uuid:anchor_id>/issues/<uuid:issue_id>/",
|
"anchor/<str:anchor>/issues/<uuid:issue_id>/",
|
||||||
IssueRetrievePublicEndpoint.as_view(),
|
IssueRetrievePublicEndpoint.as_view(),
|
||||||
name="workspace-project-boards",
|
name="workspace-project-boards",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"anchor/<uuid:anchor_id>/issues/<uuid:issue_id>/comments/",
|
"anchor/<str:anchor>/issues/<uuid:issue_id>/comments/",
|
||||||
IssueCommentPublicViewSet.as_view(
|
IssueCommentPublicViewSet.as_view(
|
||||||
{
|
{
|
||||||
"get": "list",
|
"get": "list",
|
||||||
@ -25,7 +25,7 @@ urlpatterns = [
|
|||||||
name="issue-comments-project-board",
|
name="issue-comments-project-board",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"anchor/<uuid:anchor_id>/issues/<uuid:issue_id>/comments/<uuid:pk>/",
|
"anchor/<str:anchor>/issues/<uuid:issue_id>/comments/<uuid:pk>/",
|
||||||
IssueCommentPublicViewSet.as_view(
|
IssueCommentPublicViewSet.as_view(
|
||||||
{
|
{
|
||||||
"get": "retrieve",
|
"get": "retrieve",
|
||||||
@ -36,7 +36,7 @@ urlpatterns = [
|
|||||||
name="issue-comments-project-board",
|
name="issue-comments-project-board",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"anchor/<uuid:anchor_id>/issues/<uuid:issue_id>/reactions/",
|
"anchor/<str:anchor>/issues/<uuid:issue_id>/reactions/",
|
||||||
IssueReactionPublicViewSet.as_view(
|
IssueReactionPublicViewSet.as_view(
|
||||||
{
|
{
|
||||||
"get": "list",
|
"get": "list",
|
||||||
@ -46,7 +46,7 @@ urlpatterns = [
|
|||||||
name="issue-reactions-project-board",
|
name="issue-reactions-project-board",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"anchor/<uuid:anchor_id>/issues/<uuid:issue_id>/reactions/<str:reaction_code>/",
|
"anchor/<str:anchor>/issues/<uuid:issue_id>/reactions/<str:reaction_code>/",
|
||||||
IssueReactionPublicViewSet.as_view(
|
IssueReactionPublicViewSet.as_view(
|
||||||
{
|
{
|
||||||
"delete": "destroy",
|
"delete": "destroy",
|
||||||
@ -55,7 +55,7 @@ urlpatterns = [
|
|||||||
name="issue-reactions-project-board",
|
name="issue-reactions-project-board",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"anchor/<uuid:anchor_id>/comments/<uuid:comment_id>/reactions/",
|
"anchor/<str:anchor>/comments/<uuid:comment_id>/reactions/",
|
||||||
CommentReactionPublicViewSet.as_view(
|
CommentReactionPublicViewSet.as_view(
|
||||||
{
|
{
|
||||||
"get": "list",
|
"get": "list",
|
||||||
@ -65,7 +65,7 @@ urlpatterns = [
|
|||||||
name="comment-reactions-project-board",
|
name="comment-reactions-project-board",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"anchor/<uuid:anchor_id>/comments/<uuid:comment_id>/reactions/<str:reaction_code>/",
|
"anchor/<str:anchor>/comments/<uuid:comment_id>/reactions/<str:reaction_code>/",
|
||||||
CommentReactionPublicViewSet.as_view(
|
CommentReactionPublicViewSet.as_view(
|
||||||
{
|
{
|
||||||
"delete": "destroy",
|
"delete": "destroy",
|
||||||
|
@ -9,12 +9,12 @@ from plane.space.views import (
|
|||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path(
|
path(
|
||||||
"anchor/<uuid:anchor_id>/settings/",
|
"anchor/<str:anchor>/settings/",
|
||||||
ProjectDeployBoardPublicSettingsEndpoint.as_view(),
|
ProjectDeployBoardPublicSettingsEndpoint.as_view(),
|
||||||
name="project-deploy-board-settings",
|
name="project-deploy-board-settings",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"anchor/<uuid:anchor_id>/issues/",
|
"anchor/<str:anchor>/issues/",
|
||||||
ProjectIssuesPublicEndpoint.as_view(),
|
ProjectIssuesPublicEndpoint.as_view(),
|
||||||
name="project-deploy-board",
|
name="project-deploy-board",
|
||||||
),
|
),
|
||||||
|
@ -69,7 +69,6 @@ class WorkspaceProjectAnchorEndpoint(BaseAPIView):
|
|||||||
]
|
]
|
||||||
|
|
||||||
def get(self, request, slug, project_id):
|
def get(self, request, slug, project_id):
|
||||||
print("did it come here")
|
|
||||||
project_deploy_board = DeployBoard.objects.get(
|
project_deploy_board = DeployBoard.objects.get(
|
||||||
workspace__slug=slug, project_id=project_id
|
workspace__slug=slug, project_id=project_id
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user