MCPcopy Create free account
hub / github.com/redis/RedisInsight / onModuleInit

Method onModuleInit

redisinsight/api/src/app.module.ts:94–106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92})
93export class AppModule implements OnModuleInit, NestModule {
94 onModuleInit() {
95 // creating required folders
96 const foldersToCreate = [
97 PATH_CONFIG.pluginsAssets,
98 PATH_CONFIG.customPlugins,
99 ];
100
101 foldersToCreate.forEach((folder) => {
102 if (!fs.existsSync(folder)) {
103 fs.mkdirSync(folder, { recursive: true });
104 }
105 });
106 }
107
108 configure(consumer: MiddlewareConsumer) {
109 consumer

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected