You've already forked fm-dx-webserver
mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-02-27 06:23:53 +01:00
add /rdsspy endpoint
This commit is contained in:
@@ -127,6 +127,10 @@ router.get('/rds', (req, res) => {
|
|||||||
res.send('Please connect using a WebSocket compatible app to obtain RDS stream.');
|
res.send('Please connect using a WebSocket compatible app to obtain RDS stream.');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
router.get('/rdsspy', (req, res) => {
|
||||||
|
res.send('Please connect using a WebSocket compatible app to obtain RDS stream.');
|
||||||
|
});
|
||||||
|
|
||||||
router.get('/api', (req, res) => {
|
router.get('/api', (req, res) => {
|
||||||
const { ps_errors, rt0_errors, rt1_errors, ims, eq, ant, st_forced, previousFreq, txInfo, ...dataToSend } = dataHandler.dataToSend;
|
const { ps_errors, rt0_errors, rt1_errors, ims, eq, ant, st_forced, previousFreq, txInfo, ...dataToSend } = dataHandler.dataToSend;
|
||||||
res.json(dataToSend);
|
res.json(dataToSend);
|
||||||
|
|||||||
Reference in New Issue
Block a user