summaryrefslogtreecommitdiff
path: root/src/auditor/taler-auditor-httpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/auditor/taler-auditor-httpd.c')
-rw-r--r--src/auditor/taler-auditor-httpd.c64
1 files changed, 55 insertions, 9 deletions
diff --git a/src/auditor/taler-auditor-httpd.c b/src/auditor/taler-auditor-httpd.c
index c79e4551d..9c02e6a49 100644
--- a/src/auditor/taler-auditor-httpd.c
+++ b/src/auditor/taler-auditor-httpd.c
@@ -182,6 +182,16 @@
#include "taler-auditor-httpd_row-minor-inconsistencies-get.h"
#include "taler-auditor-httpd_row-minor-inconsistencies-upd.h"
+#include "taler-auditor-httpd_fee-time-inconsistency-del.h"
+#include "taler-auditor-httpd_fee-time-inconsistency-put.h"
+#include "taler-auditor-httpd_fee-time-inconsistency-get.h"
+#include "taler-auditor-httpd_fee-time-inconsistency-upd.h"
+
+#include "taler-auditor-httpd_balances-del.h"
+#include "taler-auditor-httpd_balances-put.h"
+#include "taler-auditor-httpd_balances-get.h"
+#include "taler-auditor-httpd_balances-upd.h"
+
/**
* Auditor protocol version string.
*
@@ -965,6 +975,48 @@ handle_mhd_request (void *cls,
&TAH_ROW_MINOR_INCONSISTENCIES_handler_update,
MHD_HTTP_OK, false },
+ { "/fee-time-inconsistency", MHD_HTTP_METHOD_GET,
+ "application/json",
+ NULL, 0,
+ &TAH_FEE_TIME_INCONSISTENCY_handler_get,
+ MHD_HTTP_OK, false },
+ { "/fee-time-inconsistency", MHD_HTTP_METHOD_PUT,
+ "application/json",
+ NULL, 0,
+ &TAH_FEE_TIME_INCONSISTENCY_handler_put,
+ MHD_HTTP_OK, false },
+ { "/fee-time-inconsistency", MHD_HTTP_METHOD_DELETE,
+ "application/json",
+ NULL, 0,
+ &TAH_FEE_TIME_INCONSISTENCY_handler_delete,
+ MHD_HTTP_OK, false },
+ { "/fee-time-inconsistency", MHD_HTTP_METHOD_PATCH,
+ "application/json",
+ NULL, 0,
+ &TAH_FEE_TIME_INCONSISTENCY_handler_update,
+ MHD_HTTP_OK, false },
+
+ { "/balances", MHD_HTTP_METHOD_GET,
+ "application/json",
+ NULL, 0,
+ &TAH_BALANCES_handler_get,
+ MHD_HTTP_OK },
+ { "/balances", MHD_HTTP_METHOD_PUT,
+ "application/json",
+ NULL, 0,
+ &TAH_BALANCES_handler_put,
+ MHD_HTTP_OK },
+ { "/balances", MHD_HTTP_METHOD_DELETE,
+ "application/json",
+ NULL, 0,
+ &TAH_BALANCES_handler_delete,
+ MHD_HTTP_OK },
+ { "/balances", MHD_HTTP_METHOD_PATCH,
+ "application/json",
+ NULL, 0,
+ &TAH_BALANCES_handler_update,
+ MHD_HTTP_OK },
+
{ "/config", MHD_HTTP_METHOD_GET, "application/json",
NULL, 0,
&handle_config, MHD_HTTP_OK, true },
@@ -1069,13 +1121,7 @@ handle_mhd_request (void *cls,
"'" RFC_8959_PREFIX
"' prefix or 'Bearer' missing in 'Authorization' header");
- if (strcmp (auth,TMA_auth) == 0)
- {
-
- printf ("AUTH SUCCESS \n");
-
- }
- else
+ if (strcmp (auth,TMA_auth) != 0)
{
return TALER_MHD_reply_with_error (connection,
@@ -1307,8 +1353,6 @@ run (void *cls,
tok = getenv ("TALER_AUDITOR_TOKEN");
- printf ("token: %s\n", tok);
-
if ( (NULL != tok) &&
(NULL == TMA_auth) )
TMA_auth = GNUNET_strdup (tok);
@@ -1388,6 +1432,8 @@ run (void *cls,
}
global_ret = EXIT_SUCCESS;
TALER_MHD_daemon_start (mhd);
+
+
}
}