summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-04-26 00:57:51 +0200
committerChristian Grothoff <christian@grothoff.org>2020-04-26 00:57:51 +0200
commit6ca84e4121cf4bd1b8c66d2ef4bd58eeb7003ea3 (patch)
tree413ec62a53e70f4a7ab197eb35be13091ccc1873 /src/backend/taler-merchant-httpd.c
parentff42a36520baabd9d558ce51b2f92d54944e2d00 (diff)
downloadmerchant-6ca84e4121cf4bd1b8c66d2ef4bd58eeb7003ea3.tar.gz
merchant-6ca84e4121cf4bd1b8c66d2ef4bd58eeb7003ea3.tar.bz2
merchant-6ca84e4121cf4bd1b8c66d2ef4bd58eeb7003ea3.zip
first hack at POST /orders
Diffstat (limited to 'src/backend/taler-merchant-httpd.c')
-rw-r--r--src/backend/taler-merchant-httpd.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/backend/taler-merchant-httpd.c b/src/backend/taler-merchant-httpd.c
index d5bb87ed..9005b161 100644
--- a/src/backend/taler-merchant-httpd.c
+++ b/src/backend/taler-merchant-httpd.c
@@ -40,6 +40,8 @@
#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"
+
/**
* Backlog for listen operation on unix-domain sockets.
@@ -796,6 +798,12 @@ url_handler (void *cls,
.have_id_segment = true,
.handler = &TMH_private_post_products_ID_lock
},
+ /* POST /orders: */
+ {
+ .url_prefix = "/orders",
+ .method = MHD_HTTP_METHOD_POST,
+ .handler = &TMH_private_post_orders
+ },
{
NULL
}