diff --git a/src/bk-user/bkuser/apis/open_v2/urls.py b/src/bk-user/bkuser/apis/open_v2/urls.py index f879af08d..e3560829d 100644 --- a/src/bk-user/bkuser/apis/open_v2/urls.py +++ b/src/bk-user/bkuser/apis/open_v2/urls.py @@ -8,6 +8,7 @@ an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ + from django.urls import path from . import views @@ -31,6 +32,12 @@ views.ProfileDepartmentListApi.as_view(), name="open_v2.list_profile_departments", ), + # 与上面 API 一样,只是兼容了缺少末尾 / 的情况 (ESB yaml 配置里是该情况) + path( + "profiles//departments", + views.ProfileDepartmentListApi.as_view(), + name="open_v2.list_profile_departments.without_slash", + ), # 查询部门用户关系表 path( "edges/department_profile/", @@ -53,6 +60,12 @@ views.DepartmentProfileListApi.as_view(), name="open_v2.list_department_profiles", ), + # 与上面 API 一样,只是兼容了缺少末尾 / 的情况 (ESB yaml 配置里是该情况) + path( + "departments//profiles", + views.DepartmentProfileListApi.as_view(), + name="open_v2.list_department_profiles.without_slash", + ), # 更新用户语言 path( "profiles//languages/",