after claude code
This commit is contained in:
17
src/modules/products/products.module.ts
Normal file
17
src/modules/products/products.module.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { Module } from '@nestjs/common';
|
||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||
import { ProductsController } from './products.controller';
|
||||
import { ProductsService } from './products.service';
|
||||
import { ProductsRepository } from './products.repository';
|
||||
import { Product } from './entities/product.entity';
|
||||
import { Category } from '../categories/entities/category.entity';
|
||||
|
||||
@Module({
|
||||
imports: [
|
||||
TypeOrmModule.forFeature([Product, Category]),
|
||||
],
|
||||
controllers: [ProductsController],
|
||||
providers: [ProductsService, ProductsRepository],
|
||||
exports: [ProductsService, ProductsRepository],
|
||||
})
|
||||
export class ProductsModule {}
|
||||
Reference in New Issue
Block a user