refactor: change method
This commit is contained in:
parent
075d40876e
commit
7ba77907d3
2 changed files with 4 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue