diff options
| author | Ran Guin <[email protected]> | 2021-08-21 01:39:43 -0700 |
|---|---|---|
| committer | Ran Guin <[email protected]> | 2021-08-21 01:39:43 -0700 |
| commit | 6724a8660b9d47dcbac362122006cf454f13512f (patch) | |
| tree | 4e91b5f9a09a4371502c65c66b6c5d080a050f7b /routes/info.js | |
| parent | c0106191e9d25ac51b3142a79cb749b11616e20f (diff) | |
| parent | 71feadc098cf374f37bb168204dee443aa9a50f0 (diff) | |
| download | coinos-server-6724a8660b9d47dcbac362122006cf454f13512f.tar.gz coinos-server-6724a8660b9d47dcbac362122006cf454f13512f.zip | |
Merge branch 'dev' of https://github.com/coinos/coinos-server into dev
Diffstat (limited to 'routes/info.js')
| -rw-r--r-- | routes/info.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/routes/info.js b/routes/info.js index 6d9d5f32..8d098a2f 100644 --- a/routes/info.js +++ b/routes/info.js @@ -1,6 +1,15 @@ const sequelize = require("sequelize"); const { Op } = sequelize; +/** + * @api {get} /info Request server information + * @apiName GetInfo + * @apiGroup Info + * + * @apiSuccess {Object} fx Exchange rates relative to USD - fx.CUR is the value of one CUR in USD. + * @apiSuccess {String[]} networks Array of supported networks; possible values are "bitcoin", "liquid" and "lightning". + * @apiSuccess {String} clientVersion the current git commit of the ui + */ app.get("/info", ah(async (req, res, next) => { const { clientVersion } = config; |
