|
@@ -6,9 +6,6 @@ import { AppService } from './app.service';
|
|
import { ErrorInterceptor, TransformResInterceptor } from './interceptors';
|
|
import { ErrorInterceptor, TransformResInterceptor } from './interceptors';
|
|
import { MilvusModule } from './milvus/milvus.module';
|
|
import { MilvusModule } from './milvus/milvus.module';
|
|
import { CollectionsModule } from './collections/collections.module';
|
|
import { CollectionsModule } from './collections/collections.module';
|
|
-import { UsersService } from './users/users.service';
|
|
|
|
-import { UsersModule } from './users/users.module';
|
|
|
|
-import { AuthModule } from './auth/auth.module';
|
|
|
|
import { join } from 'path';
|
|
import { join } from 'path';
|
|
import { PartitionsModule } from './partitions/partitions.module';
|
|
import { PartitionsModule } from './partitions/partitions.module';
|
|
import { SchemaModule } from './schema/schema.module';
|
|
import { SchemaModule } from './schema/schema.module';
|
|
@@ -17,16 +14,21 @@ import { LoggingInterceptor } from './interceptors/index';
|
|
|
|
|
|
@Module({
|
|
@Module({
|
|
imports: [
|
|
imports: [
|
|
|
|
+ // Milvus insight will be available in one docker, so we will build client files in server's client directory
|
|
ServeStaticModule.forRoot({
|
|
ServeStaticModule.forRoot({
|
|
rootPath: join(__dirname, '../../', 'build'),
|
|
rootPath: join(__dirname, '../../', 'build'),
|
|
// renderPath: '/', // only root render static html
|
|
// renderPath: '/', // only root render static html
|
|
}),
|
|
}),
|
|
|
|
+ // used for connection and checking server stats
|
|
|
|
+ // TODO: rename to Connect
|
|
MilvusModule,
|
|
MilvusModule,
|
|
|
|
+ // used for manage collection
|
|
CollectionsModule,
|
|
CollectionsModule,
|
|
- UsersModule,
|
|
|
|
- AuthModule,
|
|
|
|
|
|
+ // used for manage partitions
|
|
PartitionsModule,
|
|
PartitionsModule,
|
|
|
|
+ // used for manage index
|
|
SchemaModule,
|
|
SchemaModule,
|
|
|
|
+ // used for events communication
|
|
EventsModule,
|
|
EventsModule,
|
|
],
|
|
],
|
|
controllers: [AppController],
|
|
controllers: [AppController],
|
|
@@ -45,7 +47,6 @@ import { LoggingInterceptor } from './interceptors/index';
|
|
provide: APP_INTERCEPTOR,
|
|
provide: APP_INTERCEPTOR,
|
|
useClass: LoggingInterceptor,
|
|
useClass: LoggingInterceptor,
|
|
},
|
|
},
|
|
- UsersService,
|
|
|
|
],
|
|
],
|
|
})
|
|
})
|
|
export class AppModule {}
|
|
export class AppModule {}
|