// 中间件模块（AuthorizationGuard 越权防御，B4 + president §2.9）
import { Module } from "@nestjs/common";
import { ClientsModule } from "../clients/clients.module.js";
import {
  AUTHORIZATION_GUARD,
  AuthorizationGuardImpl,
} from "./authorization.guard.js";

@Module({
  imports: [ClientsModule],
  providers: [
    {
      provide: AUTHORIZATION_GUARD,
      useClass: AuthorizationGuardImpl,
    },
  ],
  exports: [AUTHORIZATION_GUARD],
})
export class MiddlewareModule {}
