- Added rulesets manager to handle various data types and updates via HTTP and WebSocket. - Introduced layout store for managing kiosk layouts with caching and server synchronization. - Enhanced dashboard and data routes to support new layout and ruleset features. - Updated kiosk HTML and JavaScript to utilize new layout rendering and data binding. - Removed obsolete map route and integrated map functionality into the new tile renderer. - Improved Telegram commands to reflect changes in data structure and logging. - Refactored weather fetching intervals to prevent multiple instances. - Added SSE stream for real-time layout updates in the kiosk.
16 lines
511 B
JavaScript
16 lines
511 B
JavaScript
// Il file generale che raggruppa le api
|
|
const router = require('express').Router();
|
|
const cloudRoutes = require('./collection/cloud')
|
|
const dataRoutes = require('./collection/data')
|
|
const recRoutes = require('./collection/rec')
|
|
const dashboard = require('./collection/dashboard')
|
|
const kiosk = require('./collection/kiosk')
|
|
|
|
router.use('/cloud', cloudRoutes)
|
|
router.use('/data', dataRoutes)
|
|
router.use('/rec', recRoutes)
|
|
|
|
router.use('/dashboard', dashboard)
|
|
router.use('/kiosk', kiosk)
|
|
|
|
module.exports = router |