Skip to content

Commit 95ab3c0

Browse files
committed
added version number to isConfigured
1 parent 8c8c880 commit 95ab3c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backend/routes/auth.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ const CryptoJS = require('crypto-js');
33
const db = require("../db");
44
const jwt = require('jsonwebtoken');
55
const configClass = require("../classes/config");
6+
const packageJson = require('../../package.json');
67

78
const JWT_SECRET = process.env.JWT_SECRET;
89
const JS_USER=process.env.JS_USER;
@@ -89,7 +90,7 @@ router.post('/login', async (req, res) => {
8990
router.get('/isConfigured', async (req, res) => {
9091

9192
const state=await getConfigState();
92-
res.json({ state:state });
93+
res.json({ state:state , version:packageJson.version});
9394

9495

9596
});

0 commit comments

Comments
 (0)