From 95ee32fc571c96d81a21c66938e666e50e582645 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Fri, 19 Sep 2025 11:12:03 +0700 Subject: [PATCH] feat: response branch api --- src/controllers/01-branch-controller.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/controllers/01-branch-controller.ts b/src/controllers/01-branch-controller.ts index a09e24b..943413b 100644 --- a/src/controllers/01-branch-controller.ts +++ b/src/controllers/01-branch-controller.ts @@ -387,6 +387,14 @@ export class BranchController extends Controller { return record; } + @Get("{branchId}/bank") + @Security("keycloak") + async getBranchBankById(@Path() branchId: string) { + return await prisma.branchBank.findMany({ + where: { branchId }, + }); + } + @Post() @Security("keycloak", MANAGE_ROLES) async createBranch(@Request() req: RequestWithUser, @Body() body: BranchCreate) {