xpeditis2.0/apps/backend/src/application/organizations/organizations.module.ts
David-Henri ARNAUD dc1c881842 feature phase 2
2025-10-09 15:03:53 +02:00

28 lines
820 B
TypeScript

import { Module } from '@nestjs/common';
import { OrganizationsController } from '../controllers/organizations.controller';
// Import domain ports
import { ORGANIZATION_REPOSITORY } from '../../domain/ports/out/organization.repository';
import { TypeOrmOrganizationRepository } from '../../infrastructure/persistence/typeorm/repositories/typeorm-organization.repository';
/**
* Organizations Module
*
* Handles organization management functionality:
* - Create organizations (admin only)
* - View organization details
* - Update organization (admin/manager)
* - List organizations
*/
@Module({
controllers: [OrganizationsController],
providers: [
{
provide: ORGANIZATION_REPOSITORY,
useClass: TypeOrmOrganizationRepository,
},
],
exports: [],
})
export class OrganizationsModule {}