Browse Source

add hostPagesTotal info to the hosts API

main
ghost 2 years ago
parent
commit
afd4375e4d
  1. 11
      config/app.php.txt

11
config/app.php.txt

@ -190,4 +190,13 @@ define('API_HOSTS_ENABLED', true); @@ -190,4 +190,13 @@ define('API_HOSTS_ENABLED', true);
* Database host fields comma separated or * to share all the fields
*
*/
define('API_HOSTS_FIELDS', '`scheme`,`name`,`port`,`crawlPageLimit`,`robots`,`robotsPostfix`,`timeAdded`,`timeUpdated`'); // string: *|field names comma separated
define('API_HOSTS_FIELDS',
'`host`.`scheme`,
`host`.`name`,
`host`.`port`,
`host`.`crawlPageLimit`,
`host`.`robots`,
`host`.`robotsPostfix`,
`host`.`timeAdded`,
`host`.`timeUpdated`,
(SELECT COUNT(*) FROM `hostPage` WHERE `hostPage`.`hostId` = `host`.`hostId`) AS `hostPagesTotal`'); // string: *|field names comma separated
Loading…
Cancel
Save