diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-11-12 10:23:18 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-11-12 10:23:18 +0100 |
commit | 5f616ec6884aa8ba132d4c997f9d6cf76a98c38b (patch) | |
tree | 7a6ed383f6061c2d8fb54f658dee2380d5f22583 | |
parent | 757c9088b9c0036fde44bab8c41fac1bce86206e (diff) |
-add kyc-webhook endpoint
m--------- | contrib/gana | 0 | ||||
-rw-r--r-- | src/exchange/taler-exchange-httpd.c | 15 |
2 files changed, 15 insertions, 0 deletions
diff --git a/contrib/gana b/contrib/gana -Subproject 34f20d8be618409730e02f0078896ec129d8a40 +Subproject d610d18984a87b2bde50778c2186f03baf83ec2 diff --git a/src/exchange/taler-exchange-httpd.c b/src/exchange/taler-exchange-httpd.c index 46d5833a9..34dda85b7 100644 --- a/src/exchange/taler-exchange-httpd.c +++ b/src/exchange/taler-exchange-httpd.c @@ -46,6 +46,7 @@ #include "taler-exchange-httpd_kyc-check.h" #include "taler-exchange-httpd_kyc-proof.h" #include "taler-exchange-httpd_kyc-wallet.h" +#include "taler-exchange-httpd_kyc-webhook.h" #include "taler-exchange-httpd_link.h" #include "taler-exchange-httpd_management.h" #include "taler-exchange-httpd_melt.h" @@ -1723,6 +1724,20 @@ handle_mhd_request (void *cls, .handler.post = &TEH_handler_kyc_wallet, .nargs = 0 }, + { + .url = "kyc-webhook", + .method = MHD_HTTP_METHOD_GET, + .handler.get = &TEH_handler_kyc_webhook_get, + .nargs = UINT_MAX, + .nargs_is_upper_bound = true + }, + { + .url = "kyc-webhook", + .method = MHD_HTTP_METHOD_POST, + .handler.post = &TEH_handler_kyc_webhook_post, + .nargs = UINT_MAX, + .nargs_is_upper_bound = true + }, /* POST management endpoints */ { .url = "management", |