updated events

This commit is contained in:
CHIEFSOFT\ameye
2024-12-21 10:14:33 -05:00
parent 1f2d886553
commit d77f15dce7
2 changed files with 15 additions and 0 deletions
+9
View File
@@ -36,6 +36,15 @@ app.get('/broadcast/general', (req, res) => {
res.send('hello world')
})
app.get('/broadcast/selected', (req, res) => {
const room = 'merms_selected_events';
const message_action = 'refresh_selected_actions';
socket.emit("join_room", room);
socket.emit("send_message", { message_action , room });
res.send('hello world')
})
const routes = require('./api/routes');
routes(app);