mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
20 lines
549 B
TypeScript
20 lines
549 B
TypeScript
// services
|
|
import APIService from "@/services/api.service";
|
|
import { API_BASE_URL } from "@/helpers/common.helper";
|
|
|
|
class ProjectService extends APIService {
|
|
constructor() {
|
|
super(API_BASE_URL);
|
|
}
|
|
|
|
async getProjectSettings(workspace_slug: string, project_slug: string): Promise<any> {
|
|
return this.get(`/api/public/workspaces/${workspace_slug}/project-boards/${project_slug}/settings/`)
|
|
.then((response) => response?.data)
|
|
.catch((error) => {
|
|
throw error?.response;
|
|
});
|
|
}
|
|
}
|
|
|
|
export default ProjectService;
|