summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-05-22 11:19:49 +0200
committerChristian Grothoff <christian@grothoff.org>2020-05-22 11:19:49 +0200
commita006a459e5f7e5c47d8b0bf25f40f66954cc6464 (patch)
tree0ff127c8bd3d79525a1e397434ed2c4d574f18e6 /src/backend/taler-merchant-httpd.c
parent1e6adbf5d7f192e59a1b97697731be0491c3d75c (diff)
downloadmerchant-a006a459e5f7e5c47d8b0bf25f40f66954cc6464.tar.gz
merchant-a006a459e5f7e5c47d8b0bf25f40f66954cc6464.tar.bz2
merchant-a006a459e5f7e5c47d8b0bf25f40f66954cc6464.zip
add GET /tips/ID handler
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 b2577bd2..3a43f8e4 100644
--- a/src/backend/taler-merchant-httpd.c
+++ b/src/backend/taler-merchant-httpd.c
@@ -28,6 +28,7 @@
#include "taler-merchant-httpd_config.h"
#include "taler-merchant-httpd_exchanges.h"
#include "taler-merchant-httpd_get-orders-ID.h"
+#include "taler-merchant-httpd_get-tips-ID.h"
#include "taler-merchant-httpd_mhd.h"
#include "taler-merchant-httpd_private-delete-instances-ID.h"
#include "taler-merchant-httpd_private-delete-products-ID.h"
@@ -942,6 +943,13 @@ url_handler (void *cls,
.have_id_segment = true,
.handler = &TMH_get_orders_ID
},
+ /* GET /tips/$ID: */
+ {
+ .url_prefix = "/tips/",
+ .method = MHD_HTTP_METHOD_GET,
+ .have_id_segment = true,
+ .handler = &TMH_get_tips_ID
+ },
{
NULL
}