feat(events): add motion start/end flow with realtime client notifications
This commit is contained in:
@@ -10,6 +10,7 @@ import adminRoutes from './routes/admin';
|
||||
import devicesRoutes from './routes/devices';
|
||||
import deviceLinksRoutes from './routes/device-links';
|
||||
import commandsRoutes from './routes/commands';
|
||||
import eventsRoutes from './routes/events';
|
||||
import { setupRealtimeGateway } from './realtime/gateway';
|
||||
import { ensureMinioBucket } from './utils/minio';
|
||||
|
||||
@@ -34,6 +35,7 @@ app.use('/admin', adminRoutes);
|
||||
app.use('/devices', devicesRoutes);
|
||||
app.use('/device-links', deviceLinksRoutes);
|
||||
app.use('/commands', commandsRoutes);
|
||||
app.use('/events', eventsRoutes);
|
||||
|
||||
app.use((err: unknown, _req: express.Request, res: express.Response, _next: express.NextFunction) => {
|
||||
console.error(err);
|
||||
|
||||
Reference in New Issue
Block a user