import { collectPlugins } from '@cromwell/core-backend' ; import { AuthController } from '../controllers/auth.controller' ; import { CmsController } from '../controllers/cms.controller' ; import { MockController } from '../controllers/mock.controller' ; import { PluginController } from '../controllers/plugin.controller' ; import { RendererController } from '../controllers/renderer.controller' ; import { ThemeController } from '../controllers/theme.controller' ; import { CmsService } from '../services/cms.service' ; import { MigrationService } from '../services/migration.service' ; import { MockService } from '../services/mock.service' ; import { PluginService } from '../services/plugin.service' ; import { RendererService } from '../services/renderer.service' ; import { ThemeService } from '../services/theme.service' ; export const getControllers = async ( dev ? ) => { const def = [ CmsController , PluginController , ThemeController , AuthController , RendererController , ... ( ( await collectPlugins ( ) ) . controllers ?? [ ] ) , ] ; if ( dev ) def . push ( MockController ) ; return def ; } ; export const getServices = async ( dev ? ) => { const def = [ CmsService , PluginService , ThemeService , MigrationService , RendererService , ... ( ( await collectPlugins ( ) ) . providers ?? [ ] ) ] ; if ( dev ) def . push ( MockService ) ; return def ; } ; export const getExports = ( ) => { return [ CmsService ] ; } ;