diff options
Diffstat (limited to 'src/bank-lib/fakebank_tbr.c')
-rw-r--r-- | src/bank-lib/fakebank_tbr.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/bank-lib/fakebank_tbr.c b/src/bank-lib/fakebank_tbr.c index 94d6ea84f..56681841c 100644 --- a/src/bank-lib/fakebank_tbr.c +++ b/src/bank-lib/fakebank_tbr.c @@ -46,6 +46,26 @@ TALER_FAKEBANK_tbr_main_ ( "Fakebank - Anastasis API: serving URL `%s' for account `%s'\n", url, account); + + if ( (0 == strcmp (url, + "/config")) && + (0 == strcasecmp (method, + MHD_HTTP_METHOD_GET)) ) + { + /* GET /config */ + return TALER_MHD_REPLY_JSON_PACK ( + connection, + MHD_HTTP_OK, + GNUNET_JSON_pack_string ("version", + "0:0:0"), + GNUNET_JSON_pack_string ("currency", + h->currency), + GNUNET_JSON_pack_string ("implementation", + "urn:net:taler:specs:bank:fakebank"), + GNUNET_JSON_pack_string ("name", + "taler-revenue")); + } + if (0 == strcasecmp (method, MHD_HTTP_METHOD_GET)) { |