summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-06-12 10:39:53 +0200
committerChristian Grothoff <christian@grothoff.org>2020-06-12 10:39:53 +0200
commit0d4f84de8fb328983a38dd6672504f90609a59dc (patch)
treeea6fb5869daa209ef8edf60e3aabc182d3edb5b8 /src/backend/taler-merchant-httpd.c
parent4778b1483841cfe956d70813b5aaffd680203469 (diff)
downloadmerchant-0d4f84de8fb328983a38dd6672504f90609a59dc.tar.gz
merchant-0d4f84de8fb328983a38dd6672504f90609a59dc.tar.bz2
merchant-0d4f84de8fb328983a38dd6672504f90609a59dc.zip
enable handler
Diffstat (limited to 'src/backend/taler-merchant-httpd.c')
-rw-r--r--src/backend/taler-merchant-httpd.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/backend/taler-merchant-httpd.c b/src/backend/taler-merchant-httpd.c
index 1aad33fd..f9eed14c 100644
--- a/src/backend/taler-merchant-httpd.c
+++ b/src/backend/taler-merchant-httpd.c
@@ -39,7 +39,7 @@
#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"
-// #include "taler-merchant-httpd_private-get-orders-ID.h"
+#include "taler-merchant-httpd_private-get-orders-ID.h"
#include "taler-merchant-httpd_private-get-reserves.h"
#include "taler-merchant-httpd_private-get-reserves-ID.h"
#include "taler-merchant-httpd_private-get-tips-ID.h"
@@ -834,6 +834,13 @@ url_handler (void *cls,
.method = MHD_HTTP_METHOD_POST,
.handler = &TMH_private_post_orders
},
+ /* GET /orders/$ID: */
+ {
+ .url_prefix = "/orders/",
+ .method = MHD_HTTP_METHOD_GET,
+ .have_id_segment = true,
+ .handler = &TMH_private_get_orders_ID
+ },
/* POST /orders/$ID/refund: */
{
.url_prefix = "/orders/",