refactor: change method

This commit is contained in:
Methapon2001 2024-04-03 10:54:46 +07:00
parent 075d40876e
commit 7ba77907d3
2 changed files with 4 additions and 4 deletions

View file

@ -4,7 +4,7 @@ import {
Controller,
Delete,
Get,
Patch,
Put,
Path,
Post,
Query,
@ -171,7 +171,7 @@ export class BranchController extends Controller {
return record;
}
@Patch("{branchId}")
@Put("{branchId}")
async editBranch(
@Request() req: RequestWithUser,
@Body() body: BranchUpdate,

View file

@ -3,7 +3,7 @@ import {
Controller,
Delete,
Get,
Patch,
Put,
Path,
Post,
Query,
@ -112,7 +112,7 @@ export class BranchContactController extends Controller {
});
}
@Patch("{contactId}")
@Put("{contactId}")
async editBranchContact(
@Request() req: RequestWithUser,
@Body() body: BranchContactUpdate,