Files
plane/web/ee/services/app.service.ts
Aaryan Khandelwal 133f220e8c [WEB-1559] feat: workspace level pages (#387)
* init: pages app

* dev: initailize all pages and stores

* dev: page details

* dev: command menu added

* dev: fix old pages

* dev: workspace pages

* dev: workspace pages filter

* dev: filters added

* chore: moved pages app to the web app

* chore: new command palette added

* dev: app search endpoint

* chore: global search and app switcher ui

* chore: page editor

* chore: remove separate pages app

* dev: pages

* fix: mention user

* dev: issue entity search endpoint

* dev: update entity search endpoint

* dev: update entity search endpoint

* chore: add app switcher to the projects app

* chore: update root store

---------

Co-authored-by: pushya22 <130810100+pushya22@users.noreply.github.com>
Co-authored-by: pablohashescobar <nikhilschacko@gmail.com>
2024-06-13 14:41:54 +05:30

28 lines
624 B
TypeScript

// helpers
import { API_BASE_URL } from "@/helpers/common.helper";
// plane web types
import { IAppSearchResults } from "@/plane-web/types";
// services
import { APIService } from "@/services/api.service";
export class AppService extends APIService {
constructor() {
super(API_BASE_URL);
}
async searchApp(
workspaceSlug: string,
params: {
search: string;
}
): Promise<IAppSearchResults> {
return this.get(`/api/workspaces/${workspaceSlug}/app-search/`, {
params,
})
.then((res) => res?.data)
.catch((error) => {
throw error?.response?.data;
});
}
}