summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-05-18 19:11:08 +0200
committerChristian Grothoff <christian@grothoff.org>2020-05-18 19:11:08 +0200
commit49bb51daf5486817c3adc8a63137de1ec9d98589 (patch)
treec1b3151faf42ab2abdb64b46b4e10c0330183b84 /src/backend/taler-merchant-httpd.c
parent1792cbaa740194e7aebb051f7ce49b3d17976648 (diff)
downloadmerchant-49bb51daf5486817c3adc8a63137de1ec9d98589.tar.gz
merchant-49bb51daf5486817c3adc8a63137de1ec9d98589.tar.bz2
merchant-49bb51daf5486817c3adc8a63137de1ec9d98589.zip
implement POST /reserves
Diffstat (limited to 'src/backend/taler-merchant-httpd.c')
-rw-r--r--src/backend/taler-merchant-httpd.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/backend/taler-merchant-httpd.c b/src/backend/taler-merchant-httpd.c
index b280386b..92334bbb 100644
--- a/src/backend/taler-merchant-httpd.c
+++ b/src/backend/taler-merchant-httpd.c
@@ -42,10 +42,11 @@
#include "taler-merchant-httpd_private-patch-instances-ID.h"
#include "taler-merchant-httpd_private-patch-products-ID.h"
#include "taler-merchant-httpd_private-post-instances.h"
-#include "taler-merchant-httpd_private-post-products.h"
-#include "taler-merchant-httpd_private-post-products-ID-lock.h"
#include "taler-merchant-httpd_private-post-orders.h"
#include "taler-merchant-httpd_private-post-orders-ID-refund.h"
+#include "taler-merchant-httpd_private-post-products.h"
+#include "taler-merchant-httpd_private-post-products-ID-lock.h"
+#include "taler-merchant-httpd_private-post-reserves.h"
#include "taler-merchant-httpd_private-post-transfers.h"
#include "taler-merchant-httpd_post-orders-ID-abort.h"
#include "taler-merchant-httpd_post-orders-ID-claim.h"
@@ -833,6 +834,12 @@ url_handler (void *cls,
.have_id_segment = true,
.handler = &TMH_private_post_orders_ID_refund
},
+ /* POST /reserves: */
+ {
+ .url_prefix = "/reserves",
+ .method = MHD_HTTP_METHOD_POST,
+ .handler = &TMH_private_post_reserves
+ },
/* POST /transfers: */
{
.url_prefix = "/transfers",