feat: add method PATCH
This commit is contained in:
parent
7cbb0cf2d9
commit
bef2233e2b
1 changed files with 9 additions and 0 deletions
|
@ -191,6 +191,15 @@ export class LhispOauthClient<iAccessToken extends AccessToken = AccessToken> {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async patch<ResponseType>({ path, data, contentType = ContentType.APPLICATION_JSON }: ExecutarRequestParams) {
|
||||||
|
return this.executarRequest<ResponseType>({
|
||||||
|
method: "PATCH",
|
||||||
|
path,
|
||||||
|
data,
|
||||||
|
contentType,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
async post<ResponseType>({ path, data, contentType = ContentType.APPLICATION_JSON }: ExecutarRequestParams) {
|
async post<ResponseType>({ path, data, contentType = ContentType.APPLICATION_JSON }: ExecutarRequestParams) {
|
||||||
return this.executarRequest<ResponseType>({
|
return this.executarRequest<ResponseType>({
|
||||||
method: "POST",
|
method: "POST",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue