summaryrefslogtreecommitdiff
path: root/src/auditor/taler-auditor-httpd.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-10-21 20:52:26 +0200
committerChristian Grothoff <christian@grothoff.org>2018-10-21 20:52:26 +0200
commit4ad39b6b73a9dd2716855e08c67a905d02a1cf97 (patch)
tree332a90050c2758e3ae23a98c811c87f17e963914 /src/auditor/taler-auditor-httpd.c
parent7e426913cee72ef5e65289f5374b0e17274bf5aa (diff)
downloadexchange-4ad39b6b73a9dd2716855e08c67a905d02a1cf97.tar.gz
exchange-4ad39b6b73a9dd2716855e08c67a905d02a1cf97.tar.bz2
exchange-4ad39b6b73a9dd2716855e08c67a905d02a1cf97.zip
first skeleton of /deposit-confirmation API implementation; not yet complete, cannot work as-is, see FIXMEs
Diffstat (limited to 'src/auditor/taler-auditor-httpd.c')
-rw-r--r--src/auditor/taler-auditor-httpd.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/auditor/taler-auditor-httpd.c b/src/auditor/taler-auditor-httpd.c
index a023fd6c2..923f69005 100644
--- a/src/auditor/taler-auditor-httpd.c
+++ b/src/auditor/taler-auditor-httpd.c
@@ -28,6 +28,7 @@
#include <pthread.h>
#include <sys/resource.h>
#include "taler_auditordb_lib.h"
+#include "taler-auditor-httpd_deposit-confirmation.h"
#include "taler-auditor-httpd_parsing.h"
#include "taler-auditor-httpd_mhd.h"
#include "taler-auditor-httpd.h"
@@ -296,7 +297,14 @@ handle_mhd_request (void *cls,
{
static struct TAH_RequestHandler handlers[] =
{
- /* Landing page, tell humans to go away. */
+ /* Our most popular handler (thus first!), used by merchants to
+ probabilistically report us their deposit confirmations. */
+ { "/deposit-confirmation", MHD_HTTP_METHOD_PUT, "text/plain",
+ NULL, 0,
+ &TAH_DEPOSIT_CONFIRMATION_handler, MHD_HTTP_OK },
+
+ /* Landing page, for now tells humans to go away (FIXME: replace
+ with auditor's welcome page!) */
{ "/", MHD_HTTP_METHOD_GET, "text/plain",
"Hello, I'm the Taler auditor. This HTTP server is not for humans.\n", 0,
&TAH_MHD_handler_static_response, MHD_HTTP_OK },