Files
hedena_gold/apps/api/src/modules/customers/customers.module.ts
T

23 lines
894 B
TypeScript
Raw Normal View History

2026-09-09 06:46:27 +03:30
import { Module } from '@nestjs/common';
import { CustomersService } from './customers.service';
/**
* Customer reads, exposed only through CustomerAuthController's token-derived
* /customer/me* routes.
*
* CustomersController used to live here and served GET /customers,
* /customers/:id, /customers/:id/orders and /customers/:id/ledger-entries, all
* unauthenticated. The list handed any visitor every customer's national code,
* debts, credit limit and identity-document URLs, and the :id routes let anyone
* holding an id read that customer's profile, orders and ledger — so narrowing
* the list alone did not close it. The whole controller is gone; the service
* stays and is now only reachable behind a customer token.
*
* See SEC-08 in docs/parity/ISSUES.md.
*/
2026-09-09 06:46:27 +03:30
@Module({
providers: [CustomersService],
exports: [CustomersService],
})
export class CustomersModule {}