diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-11-15 09:47:47 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-11-15 09:47:47 +0900 |
| commit | c46850a69a5f6f33df2cf0b9299c5f0dcf56bcfa (patch) | |
| tree | fde65b821ee79ae376ba0961901b695bf4c9eedb /src/api/endpoints/meta.ts | |
| parent | Fix rendering glitch (diff) | |
| download | sharkey-c46850a69a5f6f33df2cf0b9299c5f0dcf56bcfa.tar.gz sharkey-c46850a69a5f6f33df2cf0b9299c5f0dcf56bcfa.tar.bz2 sharkey-c46850a69a5f6f33df2cf0b9299c5f0dcf56bcfa.zip | |
:v:
Diffstat (limited to 'src/api/endpoints/meta.ts')
| -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 a3f1d50329..4f626efa6f 100644 --- a/src/api/endpoints/meta.ts +++ b/src/api/endpoints/meta.ts @@ -4,6 +4,7 @@ import * as os from 'os'; import version from '../../version'; import config from '../../conf'; +import Meta from '../models/meta'; /** * @swagger @@ -39,6 +40,8 @@ import config from '../../conf'; * @return {Promise<any>} */ module.exports = (params) => new Promise(async (res, rej) => { + const meta = (await Meta.findOne()) || {}; + res({ maintainer: config.maintainer, version: version, @@ -49,6 +52,7 @@ module.exports = (params) => new Promise(async (res, rej) => { cpu: { model: os.cpus()[0].model, cores: os.cpus().length - } + }, + top_image: meta.top_image }); }); |