commit 216e8e4c3a9ba41bc0a2cc9a35b53bd335ad7cf6
parent f92a1ee971ce89d4fbcde06083fd7e96d971a1be
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date: Thu, 16 Apr 2020 23:19:55 +0200
Provide 'hello' endpoint for Wire Gateway.
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt
@@ -161,6 +161,10 @@ class Taler(app: Route) {
/** Attach Taler endpoints to the main Web server */
init {
+ app.get("/taler") {
+ call.respondText("Taler Gateway Hello\n", ContentType.Text.Plain, HttpStatusCode.OK)
+ return@get
+ }
app.post("/taler/transfer") {
val exchangeId = authenticateRequest(call.request.headers["Authorization"])
val transferRequest = call.receive<TalerTransferRequest>()