(workspaceSlug: string, projectId: string, data: any)
| 27 | } |
| 28 | |
| 29 | async create(workspaceSlug: string, projectId: string, data: any): Promise<IModule> { |
| 30 | return this.post(`/api/workspaces/${workspaceSlug}/projects/${projectId}/modules/`, data) |
| 31 | .then((response) => response?.data) |
| 32 | .catch((error) => { |
| 33 | throw error?.response?.data; |
| 34 | }); |
| 35 | } |
| 36 | |
| 37 | async retrieve(workspaceSlug: string, projectId: string, moduleId: string): Promise<IModule> { |
| 38 | return this.get(`/api/workspaces/${workspaceSlug}/projects/${projectId}/modules/${moduleId}/`) |