Implement dynamic data range interval and notification panel with redirection highlights
This commit is contained in:
1 parent
6c8874afdc
commit
1d8f8244a6
8 files changed
+359
-17
No files matched your search
@@ -385,4 +385,14 @@ router.get('/security-devices', async (req, res) => {
|
||||
}
|
||||
});
|
||||
|
||||
// GET /api/dashboard/data-interval
|
||||
router.get('/data-interval', (req, res) => {
|
||||
try {
|
||||
const data = db.getDataInterval();
|
||||
res.json({ ok: true, data });
|
||||
} catch (err) {
|
||||
res.status(500).json({ ok: false, message: err.message });
|
||||
}
|
||||
});
|
||||
|
||||
module.exports = router;␍
|
||||
Reference in new issue
Block a user