summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd.c
diff options
context:
space:
mode:
authorJonathan Buchanan <jonathan.russ.buchanan@gmail.com>2020-07-20 04:15:17 -0400
committerJonathan Buchanan <jonathan.russ.buchanan@gmail.com>2020-07-20 04:15:17 -0400
commit95471d8638e56bada29e6611ed3de5aa5926f03b (patch)
tree223e34fa3ce4a0469b48b0a15f58a0c8b7414336 /src/backend/taler-merchant-httpd.c
parent974896506507eeaf7290536a75009eeb812186be (diff)
downloadmerchant-95471d8638e56bada29e6611ed3de5aa5926f03b.tar.gz
merchant-95471d8638e56bada29e6611ed3de5aa5926f03b.tar.bz2
merchant-95471d8638e56bada29e6611ed3de5aa5926f03b.zip
basic implementation for forget
Diffstat (limited to 'src/backend/taler-merchant-httpd.c')
-rw-r--r--src/backend/taler-merchant-httpd.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/backend/taler-merchant-httpd.c b/src/backend/taler-merchant-httpd.c
index 1cf398e2..e20119fb 100644
--- a/src/backend/taler-merchant-httpd.c
+++ b/src/backend/taler-merchant-httpd.c
@@ -46,6 +46,7 @@
#include "taler-merchant-httpd_private-get-tips.h"
#include "taler-merchant-httpd_private-get-transfers.h"
#include "taler-merchant-httpd_private-patch-instances-ID.h"
+#include "taler-merchant-httpd_private-patch-orders-ID-forget.h"
#include "taler-merchant-httpd_private-patch-products-ID.h"
#include "taler-merchant-httpd_private-post-instances.h"
#include "taler-merchant-httpd_private-post-orders.h"
@@ -891,6 +892,17 @@ url_handler (void *cls,
to set a conservative bound for sane wallets */
.max_upload = 1024 * 1024
},
+ /* PATCH /orders/$ID/forget: */
+ {
+ .url_prefix = "/orders/",
+ .url_suffix = "forget",
+ .method = MHD_HTTP_METHOD_PATCH,
+ .have_id_segment = true,
+ .handler = &TMH_private_patch_orders_ID_forget,
+ /* the body should be pretty small, allow 1 MB of upload
+ to set a conservative bound for sane wallets */
+ .max_upload = 1024 * 1024
+ },
/* DELETE /orders/$ID: */
{
.url_prefix = "/orders/",