import { Global, Module } from '@nestjs/common';
import { CaslAbilityFactory } from './casl-ability.factory';
import { AuthorizationService } from './authorization.service';
import { PoliciesGuard } from './guards/policies.guard';

@Global()
@Module({
  providers: [CaslAbilityFactory, AuthorizationService, PoliciesGuard],
  exports: [CaslAbilityFactory, AuthorizationService, PoliciesGuard],
})
export class AuthorizationModule {}
