Skip to content

Commit 16cafec

Browse files
committed
fix: update module and tool URLs to avoid duplicate paths for ModuleTreeView and ToolTreeView
1 parent 2c0cb5b commit 16cafec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/modules/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
app_name = "module"
66
urlpatterns = [
77
path('workspace/<str:workspace_id>/<str:source>/module', views.ModuleView.Create.as_view()),
8-
path('workspace/<str:workspace_id>/<str:source>/module/tree', views.ModuleTreeView.as_view()),
8+
path('workspace/<str:workspace_id>/<str:source>/module', views.ModuleTreeView.as_view()),
99
path('workspace/<str:workspace_id>/<str:source>/module/<str:module_id>', views.ModuleView.Operate.as_view()),
1010
]

apps/tools/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
app_name = "tool"
66
urlpatterns = [
77
path('workspace/<str:workspace_id>/tool', views.ToolView.Create.as_view()),
8-
path('workspace/<str:workspace_id>/tool/tree', views.ToolTreeView.as_view()),
8+
path('workspace/<str:workspace_id>/tool', views.ToolTreeView.as_view()),
99
path('workspace/<str:workspace_id>/tool/<str:tool_id>', views.ToolView.Operate.as_view()),
1010
]

0 commit comments

Comments
 (0)