2023-08-11 11:48:33 +00:00
|
|
|
// services
|
|
|
|
import APIService from "services/api.service";
|
|
|
|
|
|
|
|
class ProjectService extends APIService {
|
|
|
|
constructor() {
|
2023-08-21 19:43:51 +00:00
|
|
|
super(process.env.NEXT_PUBLIC_API_BASE_URL || "http://localhost:8000");
|
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;
|