diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-04-10 16:37:08 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-04-10 16:37:08 +0200 |
commit | 368b9f8fcbd33cfc3106b2683a376422275a3c23 (patch) | |
tree | 5dd69d119d69a035fd271481f2e51782f18f9e4d /src/exchange/taler-exchange-httpd.c | |
parent | 2684327176f5e4aab35d1c25b32b37a4c065fadd (diff) | |
download | exchange-368b9f8fcbd33cfc3106b2683a376422275a3c23.tar.gz exchange-368b9f8fcbd33cfc3106b2683a376422275a3c23.tar.bz2 exchange-368b9f8fcbd33cfc3106b2683a376422275a3c23.zip |
add test case for #3887
Diffstat (limited to 'src/exchange/taler-exchange-httpd.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/exchange/taler-exchange-httpd.c b/src/exchange/taler-exchange-httpd.c index 6b285a3c3..b40eaf3a6 100644 --- a/src/exchange/taler-exchange-httpd.c +++ b/src/exchange/taler-exchange-httpd.c @@ -32,6 +32,7 @@ #include "taler-exchange-httpd_deposit.h" #include "taler-exchange-httpd_refund.h" #include "taler-exchange-httpd_reserve.h" +#include "taler-exchange-httpd_payback.h" #include "taler-exchange-httpd_wire.h" #include "taler-exchange-httpd_refresh.h" #include "taler-exchange-httpd_tracking.h" @@ -295,6 +296,13 @@ handle_mhd_request (void *cls, "Only POST is allowed", 0, &TEH_MHD_handler_send_json_pack_error, MHD_HTTP_METHOD_NOT_ALLOWED }, + { "/payback", MHD_HTTP_METHOD_POST, "application/json", + NULL, 0, + &TEH_PAYBACK_handler_payback, MHD_HTTP_OK }, + { "/refresh/link", NULL, "text/plain", + "Only GET is allowed", 0, + &TEH_MHD_handler_send_json_pack_error, MHD_HTTP_METHOD_NOT_ALLOWED }, + { NULL, NULL, NULL, NULL, 0, 0 } }; static struct TEH_RequestHandler h404 = |