import { Module } from '@nestjs/common';
import { ResourceService } from './resource.service';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Resource } from '@/entities/resource.entity';
import { ResourcePermission } from '@/entities/resource-permission.entity';
import { ResourcesController } from './resources.controller';
import { RolesModule } from '../roles/roles.module';

@Module({
  imports: [
    TypeOrmModule.forFeature([Resource, ResourcePermission]),
    RolesModule,
  ],
  providers: [ResourceService],
  exports: [ResourceService],
  controllers: [ResourcesController],
})
export class ResourcesModule {}
