2022-06-29 10:12:27 +00:00
|
|
|
import { Module } from '@nestjs/common';
|
|
|
|
import { CommunitiesService } from './communities.service';
|
|
|
|
import { CommunitiesController } from './communities.controller';
|
2022-07-01 01:42:50 +00:00
|
|
|
import { MongooseModule } from '@nestjs/mongoose';
|
|
|
|
|
|
|
|
import { Community, CommunitySchema } from '../schemas/community.schema';
|
|
|
|
|
2022-06-29 10:12:27 +00:00
|
|
|
|
|
|
|
@Module({
|
2022-07-01 01:42:50 +00:00
|
|
|
imports: [
|
|
|
|
MongooseModule.forFeature([{ name: Community.name, schema: CommunitySchema }]),
|
|
|
|
],
|
2022-06-29 10:12:27 +00:00
|
|
|
controllers: [CommunitiesController],
|
|
|
|
providers: [CommunitiesService]
|
|
|
|
})
|
|
|
|
export class CommunitiesModule {}
|