2024-05-14 08:56:54 +00:00
|
|
|
import { API_BASE_URL } from "@/helpers/common.helper";
|
2023-08-11 11:48:33 +00:00
|
|
|
// services
|
2024-03-19 14:38:35 +00:00
|
|
|
import APIService from "@/services/api.service";
|
2023-08-11 11:48:33 +00:00
|
|
|
|
|
|
|
class ProjectService extends APIService {
|
|
|
|
constructor() {
|
2023-09-13 14:51:02 +00:00
|
|
|
super(API_BASE_URL);
|
2023-08-11 11:48:33 +00:00
|
|
|
}
|
|
|
|
|
2023-09-01 11:12:30 +00:00
|
|
|
async getProjectSettings(workspace_slug: string, project_slug: string): Promise<any> {
|
2023-08-11 11:48:33 +00:00
|
|
|
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;
|