public function getClientConfig()
 {
     return array_merge(parent::getClientConfig(), ['reactRouter' => true, 'form' => ['EditForm' => ['schemaUrl' => $this->Link('schema/EditForm')], 'DetailEditForm' => ['schemaUrl' => $this->Link('schema/DetailEditForm')]], 'itemListViewEndpoint' => ['url' => $this->Link() . 'set/:id/show', 'method' => 'get'], 'publishEndpoint' => ['url' => $this->Link() . 'set/:id/publish', 'method' => 'post'], 'treeClass' => $this->config()->tree_class]);
 }
 public function getClientConfig()
 {
     $baseLink = $this->Link();
     return array_merge(parent::getClientConfig(), ['reactRouter' => true, 'createFileEndpoint' => ['url' => Controller::join_links($baseLink, 'api/createFile'), 'method' => 'post', 'payloadFormat' => 'urlencoded'], 'createFolderEndpoint' => ['url' => Controller::join_links($baseLink, 'api/createFolder'), 'method' => 'post', 'payloadFormat' => 'urlencoded'], 'readFolderEndpoint' => ['url' => Controller::join_links($baseLink, 'api/readFolder'), 'method' => 'get', 'responseFormat' => 'json'], 'searchEndpoint' => ['url' => Controller::join_links($baseLink, 'api/search'), 'method' => 'get', 'responseFormat' => 'json'], 'updateFolderEndpoint' => ['url' => Controller::join_links($baseLink, 'api/updateFolder'), 'method' => 'put', 'payloadFormat' => 'urlencoded'], 'deleteEndpoint' => ['url' => Controller::join_links($baseLink, 'api/delete'), 'method' => 'delete', 'payloadFormat' => 'urlencoded'], 'historyEndpoint' => ['url' => Controller::join_links($baseLink, 'api/history'), 'method' => 'get', 'responseFormat' => 'json'], 'limit' => $this->config()->page_length, 'form' => ['fileEditForm' => ['schemaUrl' => $this->Link('schema/fileEditForm')], 'fileInsertForm' => ['schemaUrl' => $this->Link('schema/fileInsertForm')], 'fileSelectForm' => ['schemaUrl' => $this->Link('schema/fileSelectForm')], 'addToCampaignForm' => ['schemaUrl' => $this->Link('schema/addToCampaignForm')], 'fileHistoryForm' => ['schemaUrl' => $this->Link('schema/fileHistoryForm')]]]);
 }