summaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-05-19 22:34:18 +0200
committerChristian Grothoff <christian@grothoff.org>2020-05-19 22:34:27 +0200
commit9af93eeae2a1fcd9eddf22e9ebeb7ad0aeb34505 (patch)
tree8e78be032d6ba3c0cde7b9452f3e7c48b7cb6046 /src/backend
parent601abc17e4d63fed52de91402c15bb4d9ba3e014 (diff)
downloadmerchant-9af93eeae2a1fcd9eddf22e9ebeb7ad0aeb34505.tar.gz
merchant-9af93eeae2a1fcd9eddf22e9ebeb7ad0aeb34505.tar.bz2
merchant-9af93eeae2a1fcd9eddf22e9ebeb7ad0aeb34505.zip
expanding DB API
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/Makefile.am2
-rw-r--r--src/backend/taler-merchant-httpd.c7
2 files changed, 9 insertions, 0 deletions
diff --git a/src/backend/Makefile.am b/src/backend/Makefile.am
index bba50887..b493e3a1 100644
--- a/src/backend/Makefile.am
+++ b/src/backend/Makefile.am
@@ -41,6 +41,8 @@ taler_merchant_httpd_SOURCES = \
taler-merchant-httpd_private-get-products-ID.h \
taler-merchant-httpd_private-get-orders.c \
taler-merchant-httpd_private-get-orders.h \
+ taler-merchant-httpd_private-get-reserves.c \
+ taler-merchant-httpd_private-get-reserves.h \
taler-merchant-httpd_private-get-transfers.c \
taler-merchant-httpd_private-get-transfers.h \
taler-merchant-httpd_private-patch-instances-ID.c \
diff --git a/src/backend/taler-merchant-httpd.c b/src/backend/taler-merchant-httpd.c
index 92334bbb..32732bd9 100644
--- a/src/backend/taler-merchant-httpd.c
+++ b/src/backend/taler-merchant-httpd.c
@@ -38,6 +38,7 @@
#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-reserves.h"
#include "taler-merchant-httpd_private-get-transfers.h"
#include "taler-merchant-httpd_private-patch-instances-ID.h"
#include "taler-merchant-httpd_private-patch-products-ID.h"
@@ -840,6 +841,12 @@ url_handler (void *cls,
.method = MHD_HTTP_METHOD_POST,
.handler = &TMH_private_post_reserves
},
+ /* GET /reserves: */
+ {
+ .url_prefix = "/reserves",
+ .method = MHD_HTTP_METHOD_GET,
+ .handler = &TMH_private_get_reserves
+ },
/* POST /transfers: */
{
.url_prefix = "/transfers",