commit b08fa41132983296ace7eb49eb424960c1bbe596 parent 56a1a942be96dc470d313e845dfbfc81fc607f6a Author: MS <ms@taler.net> Date: Thu, 28 May 2020 17:17:58 +0200 Tie TWG endpoints to handlers. Diffstat:
| M | nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt | | | 19 | +++++++++++++++---- |
1 file changed, 15 insertions(+), 4 deletions(-)
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt @@ -446,8 +446,19 @@ suspend fun historyIncoming(call: ApplicationCall): Unit { } fun talerFacadeRoutes(route: Route) { - route.post("/transfer") {} - route.post("/admin/add-incoming") {} - route.get("/history/outgoing") {} - route.get("/history/incoming") {} + route.post("/transfer") { + talerTransfer(call) + return@post + } + route.post("/admin/add-incoming") { + talerAddIncoming(call) + return@post + } + route.get("/history/outgoing") { + return@get + } + route.get("/history/incoming") { + historyIncoming(call) + return@get + } } \ No newline at end of file