summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric Zwahlen <cedric.zwahlen@students.bfh.ch>2024-03-14 15:41:07 +0100
committerCedric Zwahlen <cedric.zwahlen@students.bfh.ch>2024-04-19 20:47:25 +0200
commit092be34962a2925be1957624bac39db4db79270b (patch)
treea91a587f62d82e0fe2b0b18ba0ea0ca0b358e6e4
parentf23233d1e361095c78925f076cf467c7e38b4fd6 (diff)
downloadexchange-092be34962a2925be1957624bac39db4db79270b.tar.gz
exchange-092be34962a2925be1957624bac39db4db79270b.tar.bz2
exchange-092be34962a2925be1957624bac39db4db79270b.zip
Add includes
-rw-r--r--src/auditor/taler-auditor-httpd.c9
-rw-r--r--src/auditor/taler-auditor-httpd_deposit-confirmation-get.h12
2 files changed, 6 insertions, 15 deletions
diff --git a/src/auditor/taler-auditor-httpd.c b/src/auditor/taler-auditor-httpd.c
index 59bd849bc..42352285d 100644
--- a/src/auditor/taler-auditor-httpd.c
+++ b/src/auditor/taler-auditor-httpd.c
@@ -31,6 +31,7 @@
#include "taler_auditordb_lib.h"
#include "taler_exchangedb_lib.h"
#include "taler-auditor-httpd_deposit-confirmation.h"
+#include "taler-auditor-httpd_deposit-confirmation-del.h"
#include "taler-auditor-httpd_deposit-confirmation-get.h"
#include "taler-auditor-httpd_mhd.h"
#include "taler-auditor-httpd.h"
@@ -220,9 +221,11 @@ handle_mhd_request (void *cls,
{ "/deposit-confirmation", MHD_HTTP_METHOD_GET, "application/json",
NULL, 0,
&TAH_DEPOSIT_CONFIRMATION_handler_get, MHD_HTTP_OK },
-// { "/deposit-confirmation", MHD_HTTP_METHOD_DELETE, "application/json",
-// NULL, 0,
-// &TAH_DEPOSIT_CONFIRMATION_delete, MHD_HTTP_OK },
+
+ { "/deposit-confirmation", MHD_HTTP_METHOD_DELETE, "application/json",
+ NULL, 0,
+ &TAH_DEPOSIT_CONFIRMATION_handler_delete, MHD_HTTP_OK },
+
{ "/config", MHD_HTTP_METHOD_GET, "application/json",
NULL, 0,
&handle_config, MHD_HTTP_OK },
diff --git a/src/auditor/taler-auditor-httpd_deposit-confirmation-get.h b/src/auditor/taler-auditor-httpd_deposit-confirmation-get.h
index f1f522787..4f8064c54 100644
--- a/src/auditor/taler-auditor-httpd_deposit-confirmation-get.h
+++ b/src/auditor/taler-auditor-httpd_deposit-confirmation-get.h
@@ -54,17 +54,5 @@ TAH_DEPOSIT_CONFIRMATION_handler_get (struct TAH_RequestHandler *rh,
const char *upload_data,
size_t *upload_data_size);
-/**
- * Handle a DELETE "/deposit-confirmation/$dc" request.
- *
- * @param rc request details about the request to handle
- * @param args argument with the dc primary key
- * @return MHD result code
- */
-/*MHD_RESULT
-TAH_DEPOSIT_CONFIRMATION_delete (
- struct TEH_RequestContext *rc,
- const char *const args[1]);*/
-
#endif