mirror of
https://github.com/danbulant/mysqlExporter
synced 2026-07-07 04:10:53 +00:00
Simple database info
This commit is contained in:
parent
f5ca15b9cb
commit
e781902368
1 changed files with 6 additions and 0 deletions
6
index.js
6
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) => {
|
app.get("/fieldsIgnored", (req, res) => {
|
||||||
var fi = config.fields_ignored;
|
var fi = config.fields_ignored;
|
||||||
if(!Array.isArray(fi)) fi = [];
|
if(!Array.isArray(fi)) fi = [];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue