Assist_Design/apps/bff/src/modules/currency/currency.controller.ts
barsa a3dbd07183 Enhance ESLint Rules and Refactor Domain Imports
- Updated ESLint configuration to enforce stricter import rules for the @customer-portal/domain package, promoting better import hygiene and preventing deep imports.
- Refactored various files across the BFF and portal applications to comply with the new import rules, ensuring that only the appropriate modules are imported from the domain.
- Cleaned up unused imports and optimized code structure for improved maintainability and clarity.
- Updated documentation to reflect changes in import practices and domain structure.
2025-12-26 14:53:03 +09:00

22 lines
666 B
TypeScript

import { Controller, Get } from "@nestjs/common";
import { Public } from "@bff/modules/auth/decorators/public.decorator.js";
import { WhmcsCurrencyService } from "../../integrations/whmcs/services/whmcs-currency.service.js";
import type { Currency } from "@customer-portal/domain/billing";
@Controller("currency")
export class CurrencyController {
constructor(private readonly currencyService: WhmcsCurrencyService) {}
@Public()
@Get("default")
getDefaultCurrency(): Currency {
return this.currencyService.getDefaultCurrency();
}
@Public()
@Get("all")
getAllCurrencies(): Currency[] {
return this.currencyService.getAllCurrencies();
}
}