Add hostname

This commit is contained in:
Daniel Bulant 2020-04-14 12:11:26 +02:00
parent 5f0f6fb7ff
commit f991be1432
2 changed files with 3 additions and 2 deletions

View file

@ -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
});
});

View file

@ -171,7 +171,7 @@
var d = new Date();
date.innerHTML = "Generated " + d.toString() + ".<br>Number of tables: " + Object.keys(tables)
.length;
.length + "<br>Host: " + db.host;
})()
</script>
</body>