Added missing routes to API

Changed getDBInfo from post to get request
This commit is contained in:
Isaac Abadi
2021-09-30 22:18:55 -06:00
parent 94006ef794
commit c5db1d30e2
41 changed files with 1255 additions and 118 deletions

View File

@@ -950,7 +950,7 @@ app.post('/api/restartServer', optionalJwt, (req, res) => {
res.send({success: true});
});
app.post('/api/getDBInfo', optionalJwt, async (req, res) => {
app.get('/api/getDBInfo', optionalJwt, async (req, res) => {
const db_info = await db_api.getDBStats();
res.send({db_info: db_info});
});