mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-05 16:11:29 +03:00
Added missing routes to API
Changed getDBInfo from post to get request
This commit is contained in:
@@ -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});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user