POST -> PATCH
This commit is contained in:
@@ -29,6 +29,10 @@ export class NosHttpClient {
|
|||||||
return this.client.post
|
return this.client.post
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get patch() {
|
||||||
|
return this.client.patch
|
||||||
|
}
|
||||||
|
|
||||||
get get() {
|
get get() {
|
||||||
return this.client.get
|
return this.client.get
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -142,7 +142,7 @@ export class NosRepository {
|
|||||||
action: "enable"
|
action: "enable"
|
||||||
}
|
}
|
||||||
|
|
||||||
const req = this.httpClient.post<NosApi.BarResponseOk>(PATH, data)
|
const req = this.httpClient.patch<NosApi.BarResponseOk>(PATH, data)
|
||||||
const resp = await this.manageNosRequest<string, NosApi.BarResponseOk>(req)
|
const resp = await this.manageNosRequest<string, NosApi.BarResponseOk>(req)
|
||||||
|
|
||||||
if (resp.error != undefined) {
|
if (resp.error != undefined) {
|
||||||
@@ -161,7 +161,7 @@ export class NosRepository {
|
|||||||
action: "disable"
|
action: "disable"
|
||||||
}
|
}
|
||||||
|
|
||||||
const req = this.httpClient.post<NosApi.BarResponseOk>(PATH, data)
|
const req = this.httpClient.patch<NosApi.BarResponseOk>(PATH, data)
|
||||||
const resp = await this.manageNosRequest<string, NosApi.BarResponseOk>(req)
|
const resp = await this.manageNosRequest<string, NosApi.BarResponseOk>(req)
|
||||||
|
|
||||||
if (resp.error != undefined) {
|
if (resp.error != undefined) {
|
||||||
|
|||||||
Reference in New Issue
Block a user