diff options
Diffstat (limited to 'src/bank-lib/fakebank_twg.c')
-rw-r--r-- | src/bank-lib/fakebank_twg.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/bank-lib/fakebank_twg.c b/src/bank-lib/fakebank_twg.c index 353821bd2..775bbb58d 100644 --- a/src/bank-lib/fakebank_twg.c +++ b/src/bank-lib/fakebank_twg.c @@ -49,6 +49,24 @@ TALER_FAKEBANK_twg_main_ ( "Fakebank TWG, 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-wire-gateway")); + } if (0 == strcasecmp (method, MHD_HTTP_METHOD_GET)) { |