diff options
author | sai-neetha <sai-neetha.phulmali@highstreet-technologies.com> | 2024-03-20 15:55:54 +0100 |
---|---|---|
committer | sai-neetha <sai-neetha.phulmali@highstreet-technologies.com> | 2024-03-20 15:56:38 +0100 |
commit | 5418ff6a08cd2482cf76aed8def6592623253229 (patch) | |
tree | 4887e64dd559f9c99f2627126b31d7f6459c34e1 /sdnr/wt-odlux/odlux/apps/configurationApp/src/services/restServices.ts | |
parent | c1a053e3bcaeb3006b822e98b80c564c330e2bf3 (diff) |
ODLUX Update
ODLUX Update
Issue-ID: CCSDK-3999
Change-Id: I6f95cd65cabe08b27a1ff71eacb7c57aa318c376
Signed-off-by: sai-neetha <sai-neetha.phulmali@highstreet-technologies.com>
Diffstat (limited to 'sdnr/wt-odlux/odlux/apps/configurationApp/src/services/restServices.ts')
-rw-r--r-- | sdnr/wt-odlux/odlux/apps/configurationApp/src/services/restServices.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sdnr/wt-odlux/odlux/apps/configurationApp/src/services/restServices.ts b/sdnr/wt-odlux/odlux/apps/configurationApp/src/services/restServices.ts index 07e263559..0fcd94567 100644 --- a/sdnr/wt-odlux/odlux/apps/configurationApp/src/services/restServices.ts +++ b/sdnr/wt-odlux/odlux/apps/configurationApp/src/services/restServices.ts @@ -143,8 +143,8 @@ class RestService { * @param data The data to be updated. * @returns The written data. */ - public setConfigData(path: string, data: any) { - return requestRestExt<{ [key: string]: any }>(path, { method: 'PUT', body: JSON.stringify(data) }); + public setConfigData(path: string, data: any, method: 'PUT' | 'POST' = 'PUT') { + return requestRestExt<{ [key: string]: any }>(path, { method, body: JSON.stringify(data) }); } public executeRpc(path: string, data: any) { |