2026-09-09 06:46:27 +03:30
|
|
|
import { Module } from '@nestjs/common';
|
|
|
|
|
import { CustomersService } from './customers.service';
|
|
|
|
|
|
2026-09-22 01:20:00 +03:30
|
|
|
/**
|
|
|
|
|
* 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 {}
|