[API] Improve /meta

This commit is contained in:
syuilo 2017-06-10 03:19:44 +09:00
parent 5291ba28bc
commit 455a46f2cb

View file

@ -1,6 +1,7 @@
/**
* Module dependencies
*/
import * as os from 'os';
import version from '../../version';
import config from '../../conf';
@ -41,6 +42,9 @@ module.exports = (params) => new Promise(async (res, rej) => {
res({
maintainer: config.maintainer,
version: version,
secure: config.https.enable
secure: config.https.enable,
cpu: {
cores: os.cpus().length
}
});
});