dependencies Legend  Declarations  Module  Bootstrap  Providers  Exports cluster_BlogModule cluster_BlogModule_providers BlogService BlogService BlogModule BlogModule BlogService->BlogModule

File

src/blog/blog.module.ts

Providers

Controllers

import { Module } from '@nestjs/common';
import { BlogController } from './blog.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { BlogService } from './blog.service';
import { BlogEntity } from 'src/database/entity/blog-entity/blog-entity';
import { BlogCategoryDetailEntity } from 'src/database/entity/blog-category-detail-entity/blog-category-detail-entity';
import { DataSource } from 'typeorm';
import { CategoryEntity } from 'src/database/entity/category-entity/category-entity';
import { ConfigModule } from '@nestjs/config';



@Module({
  imports: [ConfigModule.forRoot(),TypeOrmModule.forFeature([BlogEntity, BlogCategoryDetailEntity,CategoryEntity])],
  controllers:[BlogController],
  providers: [BlogService]
})
export class BlogModule {constructor (private datasource:DataSource){}}

results matching ""

    No results matching ""