feat: channel avatar and restream options
This commit is contained in:
@@ -7,6 +7,7 @@ const ChannelSocketHandler = require('./socket/ChannelSocketHandler');
|
||||
|
||||
const channelController = require('./controllers/ChannelController');
|
||||
const streamController = require('./controllers/StreamController');
|
||||
const ChannelService = require('./services/ChannelService');
|
||||
|
||||
dotenv.config();
|
||||
|
||||
@@ -23,7 +24,9 @@ app.use('/channels', apiRouter);
|
||||
const PORT = 5000;
|
||||
const server = app.listen(PORT, () => {
|
||||
console.log(`Server listening on Port ${PORT}`);
|
||||
//streamController.start();
|
||||
if(ChannelService.getCurrentChannel().restream) {
|
||||
streamController.start();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user