Skip to content

Commit

Permalink
feat: delete method can have body
Browse files Browse the repository at this point in the history
  • Loading branch information
suhaotian committed Mar 25, 2024
1 parent 6828ea7 commit 1bb86fb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/server/src/shared/tsdk-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const hasBodyMethods: { [key: string]: boolean | undefined } = {
post: true,
put: true,
patch: true,
delete: true,
};

export function checkMethodHasBody(method: string) {
Expand Down
1 change: 1 addition & 0 deletions packages/bench/src/shared/tsdk-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const hasBodyMethods: { [key: string]: boolean | undefined } = {
post: true,
put: true,
patch: true,
delete: true,
};

export function checkMethodHasBody(method: string) {
Expand Down
1 change: 1 addition & 0 deletions packages/tsdk/fe-sdk-template/src/shared/tsdk-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const hasBodyMethods: { [key: string]: boolean | undefined } = {
post: true,
put: true,
patch: true,
delete: true,
};

export function checkMethodHasBody(method: string) {
Expand Down

0 comments on commit 1bb86fb

Please sign in to comment.