From e7819023687d2e81df740fcfb9c1f38ec7168aca Mon Sep 17 00:00:00 2001 From: Daniel Bulant Date: Tue, 14 Apr 2020 11:56:39 +0200 Subject: [PATCH] Simple database info --- index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/index.js b/index.js index 1360147..8450850 100644 --- a/index.js +++ b/index.js @@ -37,6 +37,12 @@ app.get("/", (req, res) => { }); }); +app.get("/database", (req, res) => { + res.json({ + name: config.mysql.database + }); +}); + app.get("/fieldsIgnored", (req, res) => { var fi = config.fields_ignored; if(!Array.isArray(fi)) fi = [];