FEAT - TASKER: управление Codex Agent API через Gateway proxy
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
from .analytic import urlpatterns as analytic_urls
|
||||
from .api import urlpatterns as api_urls
|
||||
from .asset import urlpatterns as asset_urls
|
||||
from .codex_agents import urlpatterns as codex_agent_urls
|
||||
from .cycle import urlpatterns as cycle_urls
|
||||
from .estimate import urlpatterns as estimate_urls
|
||||
from .external import urlpatterns as external_urls
|
||||
@@ -28,6 +29,7 @@ from .voice_tasker import urlpatterns as voice_tasker_urls
|
||||
urlpatterns = [
|
||||
*analytic_urls,
|
||||
*asset_urls,
|
||||
*codex_agent_urls,
|
||||
*cycle_urls,
|
||||
*estimate_urls,
|
||||
*external_urls,
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
# 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.app.views import (
|
||||
CodexAgentDetailEndpoint,
|
||||
CodexAgentGrantListEndpoint,
|
||||
CodexAgentListEndpoint,
|
||||
CodexAgentRevokeEndpoint,
|
||||
CodexAgentSetupEndpoint,
|
||||
CodexAgentTokenListEndpoint,
|
||||
CodexAgentTokenRevokeEndpoint,
|
||||
)
|
||||
|
||||
|
||||
urlpatterns = [
|
||||
path(
|
||||
"workspaces/<str:slug>/codex-agent-api/agents/",
|
||||
CodexAgentListEndpoint.as_view(),
|
||||
name="codex-agent-api-agents",
|
||||
),
|
||||
path(
|
||||
"workspaces/<str:slug>/codex-agent-api/agents/<uuid:agent_id>/",
|
||||
CodexAgentDetailEndpoint.as_view(),
|
||||
name="codex-agent-api-agent-detail",
|
||||
),
|
||||
path(
|
||||
"workspaces/<str:slug>/codex-agent-api/agents/<uuid:agent_id>/revoke/",
|
||||
CodexAgentRevokeEndpoint.as_view(),
|
||||
name="codex-agent-api-agent-revoke",
|
||||
),
|
||||
path(
|
||||
"workspaces/<str:slug>/codex-agent-api/agents/<uuid:agent_id>/grants/",
|
||||
CodexAgentGrantListEndpoint.as_view(),
|
||||
name="codex-agent-api-agent-grants",
|
||||
),
|
||||
path(
|
||||
"workspaces/<str:slug>/codex-agent-api/agents/<uuid:agent_id>/tokens/",
|
||||
CodexAgentTokenListEndpoint.as_view(),
|
||||
name="codex-agent-api-agent-tokens",
|
||||
),
|
||||
path(
|
||||
"workspaces/<str:slug>/codex-agent-api/agents/<uuid:agent_id>/tokens/<uuid:token_id>/revoke/",
|
||||
CodexAgentTokenRevokeEndpoint.as_view(),
|
||||
name="codex-agent-api-agent-token-revoke",
|
||||
),
|
||||
path(
|
||||
"workspaces/<str:slug>/codex-agent-api/agents/<uuid:agent_id>/setup/",
|
||||
CodexAgentSetupEndpoint.as_view(),
|
||||
name="codex-agent-api-agent-setup",
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user