diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-10-09 16:18:44 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-10-09 16:18:44 +0200 |
commit | 91d76e7861149af36a8875bbb0811dda4e0485c4 (patch) | |
tree | c8566ab3c7b8ffcfbe215b823fbe273ec93f72ec /src/backend/taler-merchant-httpd.c | |
parent | d16c03c64da9f58e9bbf6b14bae69da633566da6 (diff) | |
download | merchant-91d76e7861149af36a8875bbb0811dda4e0485c4.tar.gz merchant-91d76e7861149af36a8875bbb0811dda4e0485c4.tar.bz2 merchant-91d76e7861149af36a8875bbb0811dda4e0485c4.zip |
-starting work on /kyc handler
Diffstat (limited to 'src/backend/taler-merchant-httpd.c')
-rw-r--r-- | src/backend/taler-merchant-httpd.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/backend/taler-merchant-httpd.c b/src/backend/taler-merchant-httpd.c index e031c2ba..feb90b28 100644 --- a/src/backend/taler-merchant-httpd.c +++ b/src/backend/taler-merchant-httpd.c @@ -39,6 +39,7 @@ #include "taler-merchant-httpd_private-delete-transfers-ID.h" #include "taler-merchant-httpd_private-get-instances.h" #include "taler-merchant-httpd_private-get-instances-ID.h" +#include "taler-merchant-httpd_private-get-instances-ID-kyc.h" #include "taler-merchant-httpd_private-get-products.h" #include "taler-merchant-httpd_private-get-products-ID.h" #include "taler-merchant-httpd_private-get-orders.h" @@ -147,7 +148,7 @@ static const struct GNUNET_CONFIGURATION_Handle *cfg; char *TMH_default_auth; -int +enum GNUNET_GenericReturnValue TMH_check_auth (const char *token, const struct GNUNET_ShortHashCode *salt, const struct GNUNET_HashCode *hash) @@ -646,6 +647,16 @@ url_handler (void *cls, /* Body should be pretty small. */ .max_upload = 1024 * 1024 }, + /* POST /kyc: */ + { + .url_prefix = "/instances/", + .url_suffix = "kyc", + .method = MHD_HTTP_METHOD_GET, + .skip_instance = true, + .default_only = true, + .have_id_segment = true, + .handler = &TMH_private_get_instances_default_ID_kyc, + }, { NULL } @@ -685,6 +696,12 @@ url_handler (void *cls, /* Body should be pretty small. */ .max_upload = 1024 * 1024, }, + /* GET /kyc: */ + { + .url_prefix = "/kyc", + .method = MHD_HTTP_METHOD_GET, + .handler = &TMH_private_get_instances_ID_kyc, + }, /* GET /products: */ { .url_prefix = "/products", |