diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-06-10 03:19:44 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-06-10 03:19:44 +0900 |
| commit | 455a46f2cb7809fc3efb4cc9ec0b8f9e80bc2be1 (patch) | |
| tree | 101ab2f9b138af7dcf361a94d7f8f8ae6fe8f95f /src/api/endpoints | |
| parent | Revert "[Client] :v:" (diff) | |
| download | sharkey-455a46f2cb7809fc3efb4cc9ec0b8f9e80bc2be1.tar.gz sharkey-455a46f2cb7809fc3efb4cc9ec0b8f9e80bc2be1.tar.bz2 sharkey-455a46f2cb7809fc3efb4cc9ec0b8f9e80bc2be1.zip | |
[API] Improve /meta
Diffstat (limited to 'src/api/endpoints')
| -rw-r--r-- | src/api/endpoints/meta.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/api/endpoints/meta.ts b/src/api/endpoints/meta.ts index 98f812abd5..be0daba75f 100644 --- a/src/api/endpoints/meta.ts +++ b/src/api/endpoints/meta.ts @@ -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 + } }); }); |