feat: response branch api
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 4s
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 4s
This commit is contained in:
parent
a33983c530
commit
95ee32fc57
1 changed files with 8 additions and 0 deletions
|
|
@ -387,6 +387,14 @@ export class BranchController extends Controller {
|
||||||
return record;
|
return record;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Get("{branchId}/bank")
|
||||||
|
@Security("keycloak")
|
||||||
|
async getBranchBankById(@Path() branchId: string) {
|
||||||
|
return await prisma.branchBank.findMany({
|
||||||
|
where: { branchId },
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
@Post()
|
@Post()
|
||||||
@Security("keycloak", MANAGE_ROLES)
|
@Security("keycloak", MANAGE_ROLES)
|
||||||
async createBranch(@Request() req: RequestWithUser, @Body() body: BranchCreate) {
|
async createBranch(@Request() req: RequestWithUser, @Body() body: BranchCreate) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue