19 lines
503 B
TypeScript
19 lines
503 B
TypeScript
import { Controller } from "@nestjs/common";
|
|
import { AccountService } from "src/customer-support/accounts/account.service";
|
|
|
|
|
|
@Controller()
|
|
export class AccountController {
|
|
constructor(private readonly accountService: AccountService) { }
|
|
|
|
findAllAccounts = async() => {
|
|
return await this.accountService.findAllAccounts();
|
|
}
|
|
|
|
findMemosByAccountId = async(
|
|
accountId:number,
|
|
) => {
|
|
return await this.accountService.findMemosByAccountId(accountId);
|
|
}
|
|
|
|
} |