- const response = await CommonResourceService.customResponse(
- this.serverApi
- .get(this.resourceType + `${uuid}/contents`, {
- params: CommonResourceService.mapKeys(_.snakeCase)(params)
- }),
- this.actions
- );
+ const pathUrl = uuid ? `${uuid}/contents` : 'contents';
+ const response = await CommonResourceService.defaultResponse(
+ this.serverApi
+ .get(this.resourceType + pathUrl, {
+ params: CommonResourceService.mapKeys(_.snakeCase)(params)
+ }),
+ this.actions,
+ false
+ );