From 1837cc0f195c699a8d2f6d61c8c52e45c996e8fb Mon Sep 17 00:00:00 2001 From: Aaryan Khandelwal Date: Mon, 16 Dec 2024 19:10:09 +0530 Subject: [PATCH] chore: update entity search endpoint --- apiserver/plane/app/urls/search.py | 4 ++-- web/core/services/project/project.service.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apiserver/plane/app/urls/search.py b/apiserver/plane/app/urls/search.py index 6cdf0a871cd..de4f1e7b2c0 100644 --- a/apiserver/plane/app/urls/search.py +++ b/apiserver/plane/app/urls/search.py @@ -16,8 +16,8 @@ name="project-issue-search", ), path( - "workspaces//projects//search/", + "workspaces//projects//entity-search/", SearchEndpoint.as_view(), - name="search", + name="entity-search", ), ] diff --git a/web/core/services/project/project.service.ts b/web/core/services/project/project.service.ts index 508a26ab740..8d419362262 100644 --- a/web/core/services/project/project.service.ts +++ b/web/core/services/project/project.service.ts @@ -172,7 +172,7 @@ export class ProjectService extends APIService { query: string; } ): Promise { - return this.get(`/api/workspaces/${workspaceSlug}/projects/${projectId}/search/`, { + return this.get(`/api/workspaces/${workspaceSlug}/projects/${projectId}/entity-search/`, { params: { ...params, query_type: params.query_type.join(","),