diff options
| author | Adam Soltys <[email protected]> | 2020-06-15 13:37:38 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2020-06-15 13:37:38 -0700 |
| commit | ed0da89c7d98195294ced6d71812183a04e24c76 (patch) | |
| tree | 411817cfbb8c7fa50b8c15ae546be038364b68ff /routes | |
| parent | 74b7d2a0d614f170ba5aea3a1a172a7a68356d80 (diff) | |
| download | coinos-server-ed0da89c7d98195294ced6d71812183a04e24c76.tar.gz coinos-server-ed0da89c7d98195294ced6d71812183a04e24c76.zip | |
move client version, update example config and schema
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/info.js | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/routes/info.js b/routes/info.js index 81cb2095..382c37c0 100644 --- a/routes/info.js +++ b/routes/info.js @@ -1,15 +1,8 @@ const sequelize = require("sequelize"); const { Op } = sequelize; -const fs = require("fs"); -try { - clientVersion = fs.readFileSync('config/clientversion').toString(); - l.info("client version", clientVersion); -} catch(e) { - l.warn("no client version found"); -} - app.get("/info", async (req, res) => { + const { clientVersion } = config; const accounts = await db.Account.findAll({ attributes: [ "asset", |
