feat(recordings): add phase6 recording finalization pipeline and simulator support
This commit is contained in:
@@ -12,8 +12,10 @@ import deviceLinksRoutes from './routes/device-links';
|
||||
import commandsRoutes from './routes/commands';
|
||||
import eventsRoutes from './routes/events';
|
||||
import streamsRoutes from './routes/streams';
|
||||
import recordingsRoutes from './routes/recordings';
|
||||
import { setupRealtimeGateway } from './realtime/gateway';
|
||||
import { ensureMinioBucket } from './utils/minio';
|
||||
import { startRecordingsWorker } from './workers/recordings';
|
||||
|
||||
const app = express();
|
||||
const openApiDocument = buildOpenApiDocument();
|
||||
@@ -39,6 +41,7 @@ app.use('/device-links', deviceLinksRoutes);
|
||||
app.use('/commands', commandsRoutes);
|
||||
app.use('/events', eventsRoutes);
|
||||
app.use('/streams', streamsRoutes);
|
||||
app.use('/recordings', recordingsRoutes);
|
||||
|
||||
app.use((err: unknown, _req: express.Request, res: express.Response, _next: express.NextFunction) => {
|
||||
console.error(err);
|
||||
@@ -57,6 +60,7 @@ const start = async () => {
|
||||
}
|
||||
|
||||
setupRealtimeGateway(server);
|
||||
startRecordingsWorker();
|
||||
|
||||
server.listen(port, () => {
|
||||
console.log(`Server is running on port ${port}`);
|
||||
|
||||
Reference in New Issue
Block a user