gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libeufin] 02/04: extend /config API


From: gnunet
Subject: [libeufin] 02/04: extend /config API
Date: Thu, 12 Nov 2020 16:26:35 +0100

This is an automated email from the git hooks/post-receive script.

ms pushed a commit to branch master
in repository libeufin.

commit 35b3bee3887597d3bd99ff885826fb27891d2988
Author: MS <ms@taler.net>
AuthorDate: Thu Nov 12 16:23:21 2020 +0100

    extend /config API
---
 cli/libeufin-cli                                                | 5 ++---
 nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt | 7 ++++++-
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/cli/libeufin-cli b/cli/libeufin-cli
index e8d7ea2..ab42881 100755
--- a/cli/libeufin-cli
+++ b/cli/libeufin-cli
@@ -187,9 +187,8 @@ def import_bank_account(obj, connection_name, 
offered_account_id, nexus_bank_acc
             ),
             auth = auth.HTTPBasicAuth(obj.username, obj.password)
         )
-    except Exception as ee:
-        print(ee)
-        print("Could not reach nexus at " + url)
+    except Exception as e:
+        print(f"Could not reach nexus at {url}: {e}")
         return
     print(resp.content.decode("utf-8"))
 
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt 
b/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt
index 08e709c..c31d7de 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt
@@ -281,7 +281,12 @@ fun serverMain(dbName: String, host: String) {
         routing {
             get("/config") {
                  call.respond(
-                     object {val version = "0.0.0"; val currency = "EUR"}
+                     object {
+                         val version = "0.0.0"
+                         val currency = "EUR"
+                         val databaseType = "sqlite"
+                         val databaseName = dbName
+                     }
                  )
                 return@get
             }

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]