# 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//codex-agent-api/agents/", CodexAgentListEndpoint.as_view(), name="codex-agent-api-agents", ), path( "workspaces//codex-agent-api/agents//", CodexAgentDetailEndpoint.as_view(), name="codex-agent-api-agent-detail", ), path( "workspaces//codex-agent-api/agents//revoke/", CodexAgentRevokeEndpoint.as_view(), name="codex-agent-api-agent-revoke", ), path( "workspaces//codex-agent-api/agents//grants/", CodexAgentGrantListEndpoint.as_view(), name="codex-agent-api-agent-grants", ), path( "workspaces//codex-agent-api/agents//tokens/", CodexAgentTokenListEndpoint.as_view(), name="codex-agent-api-agent-tokens", ), path( "workspaces//codex-agent-api/agents//tokens//revoke/", CodexAgentTokenRevokeEndpoint.as_view(), name="codex-agent-api-agent-token-revoke", ), path( "workspaces//codex-agent-api/agents//setup/", CodexAgentSetupEndpoint.as_view(), name="codex-agent-api-agent-setup", ), ]