const express = require('express'); const router = express.Router(); const EVENTS = require('../../lib/Events'); router.get('/', (req, res) => { res.sendStatus(200); }); router.post('/updateButton', (req, res) => { eventBus.emit(EVENTS.UPDATE_BUTTON, req.body) res.sendStatus(200); }) module.exports = router;