diff options
author | Jonathan Buchanan <jonathan.russ.buchanan@gmail.com> | 2020-07-20 04:15:17 -0400 |
---|---|---|
committer | Jonathan Buchanan <jonathan.russ.buchanan@gmail.com> | 2020-07-20 04:15:17 -0400 |
commit | 95471d8638e56bada29e6611ed3de5aa5926f03b (patch) | |
tree | 223e34fa3ce4a0469b48b0a15f58a0c8b7414336 /src/backend/taler-merchant-httpd.c | |
parent | 974896506507eeaf7290536a75009eeb812186be (diff) | |
download | merchant-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.c | 12 |
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/", |