diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-04-20 02:50:52 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-04-20 02:50:52 +0200 |
commit | edd31c74151d6bfe3d840bcc62b619aacf7542eb (patch) | |
tree | 1bc026290213c1f1244f636627593da3f25ce744 /src/exchange/taler-exchange-httpd.c | |
parent | f693e25793f9e8f75b80b11b066ed209e8aa4c1c (diff) | |
download | exchange-edd31c74151d6bfe3d840bcc62b619aacf7542eb.tar.gz exchange-edd31c74151d6bfe3d840bcc62b619aacf7542eb.tar.bz2 exchange-edd31c74151d6bfe3d840bcc62b619aacf7542eb.zip |
implementing parsing of /refund requests
Diffstat (limited to 'src/exchange/taler-exchange-httpd.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/exchange/taler-exchange-httpd.c b/src/exchange/taler-exchange-httpd.c index a533a973d..c99535382 100644 --- a/src/exchange/taler-exchange-httpd.c +++ b/src/exchange/taler-exchange-httpd.c @@ -30,6 +30,7 @@ #include "taler-exchange-httpd_mhd.h" #include "taler-exchange-httpd_admin.h" #include "taler-exchange-httpd_deposit.h" +#include "taler-exchange-httpd_refund.h" #include "taler-exchange-httpd_reserve.h" #include "taler-exchange-httpd_wire.h" #include "taler-exchange-httpd_refresh.h" @@ -200,6 +201,14 @@ handle_mhd_request (void *cls, "Only POST is allowed", 0, &TMH_MHD_handler_send_json_pack_error, MHD_HTTP_METHOD_NOT_ALLOWED }, + /* Refunding coins */ + { "/refund", MHD_HTTP_METHOD_POST, "application/json", + NULL, 0, + &TMH_REFUND_handler_refund, MHD_HTTP_OK }, + { "/refund", NULL, "text/plain", + "Only POST is allowed", 0, + &TMH_MHD_handler_send_json_pack_error, MHD_HTTP_METHOD_NOT_ALLOWED }, + /* Dealing with change */ { "/refresh/melt", MHD_HTTP_METHOD_POST, "application/json", NULL, 0, |