diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-04-26 00:57:51 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-04-26 00:57:51 +0200 |
commit | 6ca84e4121cf4bd1b8c66d2ef4bd58eeb7003ea3 (patch) | |
tree | 413ec62a53e70f4a7ab197eb35be13091ccc1873 /src/backend/taler-merchant-httpd.c | |
parent | ff42a36520baabd9d558ce51b2f92d54944e2d00 (diff) | |
download | merchant-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.c | 8 |
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 } |