plane/apps/space/services/project.service.ts
sriram veeraghanta d7c27b75fa fix: mobx changes
2023-08-30 17:39:11 +05:30

19 lines
542 B
TypeScript

// services
import APIService from "services/api.service";
class ProjectService extends APIService {
constructor() {
super(process.env.NEXT_PUBLIC_API_BASE_URL || "http://localhost:8000");
}
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;