libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit cfbb0ee7ba0025e547deeca8edec0cb16d0b97bd
parent 3a50b74467adf5b450fa4efabadfab78d5675009
Author: MS <ms@taler.net>
Date:   Fri, 13 Nov 2020 13:50:32 +0100

/service-config

Diffstat:
Mnexus/src/main/kotlin/tech/libeufin/nexus/Scheduling.kt | 2+-
Mnexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt | 12++++++++++--
2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/Scheduling.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/Scheduling.kt @@ -90,7 +90,7 @@ object NexusCron { fun startOperationScheduler(httpClient: HttpClient) { GlobalScope.launch { while (true) { - logger.info("running schedule loop") + logger.trace("running schedule loop") // First, assign next execution time stamps to all tasks that need them transaction { diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt @@ -65,6 +65,7 @@ import tech.libeufin.util.* import tech.libeufin.nexus.logger import java.lang.IllegalArgumentException import java.net.URLEncoder +import java.nio.file.Paths import java.util.zip.InflaterInputStream @@ -279,13 +280,20 @@ fun serverMain(dbName: String, host: String) { } startOperationScheduler(client) routing { + get("/service-config") { + call.respond( + object { + val dbConn = "sqlite://${Paths.get(dbName).toAbsolutePath()}" + } + ) + return@get + } + get("/config") { call.respond( object { val version = "0.0.0" val currency = "EUR" - val databaseType = "sqlite" - val databaseName = dbName } ) return@get