diff options
Diffstat (limited to 'src/backend/taler-merchant-httpd.c')
-rw-r--r-- | src/backend/taler-merchant-httpd.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/backend/taler-merchant-httpd.c b/src/backend/taler-merchant-httpd.c index d5be71b9..5390b00a 100644 --- a/src/backend/taler-merchant-httpd.c +++ b/src/backend/taler-merchant-httpd.c @@ -200,10 +200,10 @@ url_handler (void *cls, { "/", MHD_HTTP_METHOD_GET, "text/plain", "Hello, I'm a merchant's Taler backend. This HTTP server is not for humans.\n", 0, &TMH_MHD_handler_static_response, MHD_HTTP_OK }, - { "/pay", MHD_HTTP_METHOD_POST, "application/json", + { "/public/pay", MHD_HTTP_METHOD_POST, "application/json", NULL, 0, &MH_handler_pay, MHD_HTTP_OK }, - { "/pay", NULL, "text/plain", + { "/public/pay", NULL, "text/plain", "Only POST is allowed", 0, &TMH_MHD_handler_send_json_pack_error, MHD_HTTP_METHOD_NOT_ALLOWED }, { "/track/transfer", MHD_HTTP_METHOD_GET, "application/json", @@ -221,10 +221,10 @@ url_handler (void *cls, { "/history", MHD_HTTP_METHOD_GET, "text/plain", "Only GET is allowed", 0, &MH_handler_history, MHD_HTTP_OK}, - { "/proposal", MHD_HTTP_METHOD_POST, "application/json", + { "/order", MHD_HTTP_METHOD_POST, "application/json", NULL, 0, &MH_handler_proposal_put, MHD_HTTP_OK }, - { "/proposal", MHD_HTTP_METHOD_GET, "text/plain", + { "/public/proposal", MHD_HTTP_METHOD_GET, "text/plain", NULL, 0, &MH_handler_proposal_lookup, MHD_HTTP_OK}, { "/proposal", NULL, "text/plain", @@ -233,7 +233,7 @@ url_handler (void *cls, { "/refund", MHD_HTTP_METHOD_POST, "application/json", NULL, 0, &MH_handler_refund_increase, MHD_HTTP_OK}, - { "/refund", MHD_HTTP_METHOD_GET, "text/plain", + { "/public/refund", MHD_HTTP_METHOD_GET, "text/plain", NULL, 0, &MH_handler_refund_lookup, MHD_HTTP_OK}, { "/refund", NULL, "application/json", @@ -245,7 +245,7 @@ url_handler (void *cls, { "/tip-authorize", NULL, "application/json", "Only POST is allowed", 0, &TMH_MHD_handler_send_json_pack_error, MHD_HTTP_METHOD_NOT_ALLOWED}, - { "/tip-pickup", MHD_HTTP_METHOD_POST, "text/plain", + { "/public/tip-pickup", MHD_HTTP_METHOD_POST, "text/plain", NULL, 0, &MH_handler_tip_pickup, MHD_HTTP_OK}, { "/tip-pickup", NULL, "application/json", @@ -257,7 +257,7 @@ url_handler (void *cls, { "/check-payment", MHD_HTTP_METHOD_GET, "text/plain", NULL, 0, &MH_handler_check_payment, MHD_HTTP_OK}, - { "/trigger-pay", MHD_HTTP_METHOD_GET, "text/plain", + { "/public/trigger-pay", MHD_HTTP_METHOD_GET, "text/plain", NULL, 0, &MH_handler_trigger_pay, MHD_HTTP_OK}, {NULL, NULL, NULL, NULL, 0, 0 } |