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){}}