feat: add method PATCH

This commit is contained in:
Leandro Costa 2023-11-08 20:56:22 -03:00
parent 7cbb0cf2d9
commit bef2233e2b

View file

@ -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",