mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-10 07:33:08 +02:00
[API] Improve /meta
This commit is contained in:
parent
5291ba28bc
commit
455a46f2cb
1 changed files with 5 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* Module dependencies
|
* Module dependencies
|
||||||
*/
|
*/
|
||||||
|
import * as os from 'os';
|
||||||
import version from '../../version';
|
import version from '../../version';
|
||||||
import config from '../../conf';
|
import config from '../../conf';
|
||||||
|
|
||||||
|
@ -41,6 +42,9 @@ module.exports = (params) => new Promise(async (res, rej) => {
|
||||||
res({
|
res({
|
||||||
maintainer: config.maintainer,
|
maintainer: config.maintainer,
|
||||||
version: version,
|
version: version,
|
||||||
secure: config.https.enable
|
secure: config.https.enable,
|
||||||
|
cpu: {
|
||||||
|
cores: os.cpus().length
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue