POST -> PATCH

This commit is contained in:
2026-04-22 15:22:37 +02:00
parent e40a19bbfb
commit e1450c6e97
2 changed files with 6 additions and 2 deletions

View File

@@ -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
} }

View File

@@ -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) {