summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/exchange/taler-exchange-httpd.c')
-rw-r--r--src/exchange/taler-exchange-httpd.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/exchange/taler-exchange-httpd.c b/src/exchange/taler-exchange-httpd.c
index 79db4acd0..2d659058a 100644
--- a/src/exchange/taler-exchange-httpd.c
+++ b/src/exchange/taler-exchange-httpd.c
@@ -929,9 +929,27 @@ handle_post_management (struct TEH_RequestContext *rc,
if (0 == strcmp (args[0],
"extensions"))
{
+ if (NULL != args[1])
+ {
+ GNUNET_break_op (0);
+ return r404 (rc->connection,
+ "/management/extensions/*");
+ }
return TEH_handler_management_post_extensions (rc->connection,
root);
}
+ if (0 == strcmp (args[0],
+ "drain"))
+ {
+ if (NULL != args[1])
+ {
+ GNUNET_break_op (0);
+ return r404 (rc->connection,
+ "/management/drain/*");
+ }
+ return TEH_handler_management_post_drain (rc->connection,
+ root);
+ }
GNUNET_break_op (0);
return r404 (rc->connection,
"/management/*");