import { Module } from "@nestjs/common"; import { RateLimiterService } from "./rate-limiter.service.js"; import { RateLimitGuard } from "./rate-limit.guard.js"; /** * Imported by every module that has public (no-session) routes. Nest * dedupes module imports within one application graph, so AuthModule and * SignaturesModule importing this both resolve to the SAME * RateLimiterService instance — one shared in-memory store, bucket names * are what keep routes from colliding (see rate-limit.decorator.ts). */ @Module({ providers: [RateLimiterService, RateLimitGuard], exports: [RateLimiterService, RateLimitGuard], }) export class RateLimitModule {}