This is an automated email from the ASF dual-hosted git repository.

marat pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-karavan.git


The following commit(s) were added to refs/heads/main by this push:
     new 295711eb config
295711eb is described below

commit 295711eb444ffa98004166683cbb6f2ef038fe40
Author: Marat Gubaidullin <ma...@talismancloud.io>
AuthorDate: Wed Sep 25 12:35:22 2024 -0400

    config
---
 karavan-app/src/main/webui/src/api/KaravanApi.tsx | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/karavan-app/src/main/webui/src/api/KaravanApi.tsx 
b/karavan-app/src/main/webui/src/api/KaravanApi.tsx
index 10ef60c7..30accd1d 100644
--- a/karavan-app/src/main/webui/src/api/KaravanApi.tsx
+++ b/karavan-app/src/main/webui/src/api/KaravanApi.tsx
@@ -761,4 +761,15 @@ export class KaravanApi {
             ErrorEventBus.sendApiError(err);
         });
     }
+
+    static async getMainConfiguration(after: (json: string) => void) {
+        instance.get('/ui/metadata/mainConfiguration')
+            .then(res => {
+                if (res.status === 200) {
+                    after(JSON.stringify(res.data));
+                }
+            }).catch(err => {
+            ErrorEventBus.sendApiError(err);
+        });
+    }
 }

Reply via email to