From f991be14324ed6794870ee88df1464a0a3ce0525 Mon Sep 17 00:00:00 2001 From: Daniel Bulant Date: Tue, 14 Apr 2020 12:11:26 +0200 Subject: [PATCH] Add hostname --- index.js | 3 ++- static/index.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 8450850..95d15c9 100644 --- a/index.js +++ b/index.js @@ -39,7 +39,8 @@ app.get("/", (req, res) => { app.get("/database", (req, res) => { res.json({ - name: config.mysql.database + name: config.mysql.database, + host: config.mysql.host }); }); diff --git a/static/index.html b/static/index.html index 5c2cf49..c4875fc 100644 --- a/static/index.html +++ b/static/index.html @@ -171,7 +171,7 @@ var d = new Date(); date.innerHTML = "Generated " + d.toString() + ".
Number of tables: " + Object.keys(tables) - .length; + .length + "
Host: " + db.host; })()