mirror of
https://github.com/YGGverse/YGGo.git
synced 2025-01-24 21:44:59 +00:00
add hostPagesTotal info to the hosts API
This commit is contained in:
parent
1d7031e4f7
commit
afd4375e4d
@ -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…
x
Reference in New Issue
Block a user