summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd.c
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2022-04-11 16:48:30 +0200
committerChristian Grothoff <grothoff@gnunet.org>2022-04-11 16:48:30 +0200
commit7a1dcc52ca9a6d79be10076b06b9a3e6ea35d395 (patch)
treeb16344053dbf177032286a5083cc938c480b8292 /src/exchange/taler-exchange-httpd.c
parentc8c100529711959a1c18a5591b450362e648a9f6 (diff)
downloadexchange-7a1dcc52ca9a6d79be10076b06b9a3e6ea35d395.tar.gz
exchange-7a1dcc52ca9a6d79be10076b06b9a3e6ea35d395.tar.bz2
exchange-7a1dcc52ca9a6d79be10076b06b9a3e6ea35d395.zip
-towards new GET /contracts/$C_PUB hander
Diffstat (limited to 'src/exchange/taler-exchange-httpd.c')
-rw-r--r--src/exchange/taler-exchange-httpd.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/exchange/taler-exchange-httpd.c b/src/exchange/taler-exchange-httpd.c
index 1f7f699c7..aa3a7c412 100644
--- a/src/exchange/taler-exchange-httpd.c
+++ b/src/exchange/taler-exchange-httpd.c
@@ -1,6 +1,6 @@
/*
This file is part of TALER
- Copyright (C) 2014-2021 Taler Systems SA
+ Copyright (C) 2014-2022 Taler Systems SA
TALER is free software; you can redistribute it and/or modify it under the
terms of the GNU Affero General Public License as published by the Free Software
@@ -30,6 +30,7 @@
#include <limits.h>
#include "taler_mhd_lib.h"
#include "taler-exchange-httpd_auditors.h"
+#include "taler-exchange-httpd_contract.h"
#include "taler-exchange-httpd_csr.h"
#include "taler-exchange-httpd_deposit.h"
#include "taler-exchange-httpd_deposits_get.h"
@@ -1067,6 +1068,13 @@ handle_mhd_request (void *cls,
.handler.get = &TEH_handler_deposits_get,
.nargs = 4
},
+ /* Getting purse contracts */
+ {
+ .url = "contracts",
+ .method = MHD_HTTP_METHOD_GET,
+ .handler.get = &TEH_handler_contracts_get,
+ .nargs = 1
+ },
/* KYC endpoints */
{
.url = "kyc-check",