The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/apps/meteor/app/settings/server/index.ts

23 lines
719 B

import { Settings } from '@rocket.chat/models';
import { SettingsRegistry } from './SettingsRegistry';
import { initializeSettings } from './startup';
import { settings } from './cached';
import './applyMiddlewares';
import { use } from './Middleware';
export { SettingsEvents } from './SettingsRegistry';
export { settings };
export const settingsRegistry = new SettingsRegistry({ store: settings, model: Settings });
settingsRegistry.add = use(settingsRegistry.add, async (context, next) => {
return next(...context) as any;
});
settingsRegistry.addGroup = use(settingsRegistry.addGroup, async (context, next) => {
return next(...context) as any;
});
await initializeSettings({ model: Settings, settings });