14 lines
410 B
TypeScript
14 lines
410 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
import { Role } from './entities/role.entity';
|
|
import { RoleController } from './role.controller';
|
|
import { RoleService } from './role.service';
|
|
|
|
@Module({
|
|
imports: [TypeOrmModule.forFeature([Role])],
|
|
controllers: [RoleController],
|
|
providers: [RoleService],
|
|
exports: [RoleService],
|
|
})
|
|
export class RoleModule {}
|