diff --git a/src/exchange/Makefile.am b/src/exchange/Makefile.am index 554c42fd6..4c1f26dfc 100644 --- a/src/exchange/Makefile.am +++ b/src/exchange/Makefile.am @@ -91,7 +91,7 @@ taler_exchange_httpd_SOURCES = \ taler-exchange-httpd_management_denominations_HDP_revoke.c \ taler-exchange-httpd_management_post_keys.c \ taler-exchange-httpd_management_signkey_EP_revoke.c \ - taler-exchange-httpd_management_wire.c \ + taler-exchange-httpd_management_wire_enable.c \ taler-exchange-httpd_management_wire_disable.c \ taler-exchange-httpd_management_wire_fees.c \ taler-exchange-httpd_melt.c taler-exchange-httpd_melt.h \ diff --git a/src/exchange/taler-exchange-httpd.c b/src/exchange/taler-exchange-httpd.c index e823874de..237a0e8ea 100644 --- a/src/exchange/taler-exchange-httpd.c +++ b/src/exchange/taler-exchange-httpd.c @@ -640,8 +640,8 @@ handle_post_management (const struct TEH_RequestHandler *rh, "wire")) { if (NULL == args[1]) - return TEH_handler_management_denominations_wire (connection, - root); + return TEH_handler_management_post_wire (connection, + root); if ( (0 != strcmp (args[1], "disable")) || (NULL != args[2]) ) @@ -649,8 +649,8 @@ handle_post_management (const struct TEH_RequestHandler *rh, GNUNET_break_op (0); return r404 (connection, "/management/wire/disable"); } - return TEH_handler_management_denominations_wire_disable (connection, - root); + return TEH_handler_management_post_wire_disable (connection, + root); } if (0 == strcmp (args[0], "wire-fee")) diff --git a/src/exchange/taler-exchange-httpd_management.h b/src/exchange/taler-exchange-httpd_management.h index b5ab8478e..3f58083e4 100644 --- a/src/exchange/taler-exchange-httpd_management.h +++ b/src/exchange/taler-exchange-httpd_management.h @@ -97,27 +97,27 @@ TEH_handler_management_post_keys ( /** - * Handle a "/management/wire" request. + * Handle a POST "/management/wire" request. * * @param connection the MHD connection to handle * @param root uploaded JSON data * @return MHD result code */ MHD_RESULT -TEH_handler_management_denominations_wire ( +TEH_handler_management_post_wire ( struct MHD_Connection *connection, const json_t *root); /** - * Handle a "/management/wire/disable" request. + * Handle a POST "/management/wire/disable" request. * * @param connection the MHD connection to handle * @param root uploaded JSON data * @return MHD result code */ MHD_RESULT -TEH_handler_management_denominations_wire_disable ( +TEH_handler_management_post_wire_disable ( struct MHD_Connection *connection, const json_t *root); diff --git a/src/exchange/taler-exchange-httpd_management_wire_disable.c b/src/exchange/taler-exchange-httpd_management_wire_disable.c index 0d446bca1..3b760ea9f 100644 --- a/src/exchange/taler-exchange-httpd_management_wire_disable.c +++ b/src/exchange/taler-exchange-httpd_management_wire_disable.c @@ -134,7 +134,7 @@ del_wire (void *cls, MHD_RESULT -TEH_handler_management_denominations_wire_disable ( +TEH_handler_management_post_wire_disable ( struct MHD_Connection *connection, const json_t *root) { diff --git a/src/exchange/taler-exchange-httpd_management_wire.c b/src/exchange/taler-exchange-httpd_management_wire_enable.c similarity index 99% rename from src/exchange/taler-exchange-httpd_management_wire.c rename to src/exchange/taler-exchange-httpd_management_wire_enable.c index e3a31c1e6..a12fcb647 100644 --- a/src/exchange/taler-exchange-httpd_management_wire.c +++ b/src/exchange/taler-exchange-httpd_management_wire_enable.c @@ -140,7 +140,7 @@ add_wire (void *cls, MHD_RESULT -TEH_handler_management_denominations_wire ( +TEH_handler_management_post_wire ( struct MHD_Connection *connection, const json_t *root) {