aboutsummaryrefslogtreecommitdiffstats
path: root/packages/testnet-faucets/src/ts/server.ts
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-01-25 09:11:14 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-01-25 09:11:14 +0800
commitd3aa4f2bc7f2341a98c4aa6018c0d2ede221a3ed (patch)
tree8871a646678749dbe21d21ef724ac83b778d5257 /packages/testnet-faucets/src/ts/server.ts
parentb08bd0f9ab8d5e556c0be3867eafa264b08e8e0e (diff)
downloaddexon-sol-tools-d3aa4f2bc7f2341a98c4aa6018c0d2ede221a3ed.tar
dexon-sol-tools-d3aa4f2bc7f2341a98c4aa6018c0d2ede221a3ed.tar.gz
dexon-sol-tools-d3aa4f2bc7f2341a98c4aa6018c0d2ede221a3ed.tar.bz2
dexon-sol-tools-d3aa4f2bc7f2341a98c4aa6018c0d2ede221a3ed.tar.lz
dexon-sol-tools-d3aa4f2bc7f2341a98c4aa6018c0d2ede221a3ed.tar.xz
dexon-sol-tools-d3aa4f2bc7f2341a98c4aa6018c0d2ede221a3ed.tar.zst
dexon-sol-tools-d3aa4f2bc7f2341a98c4aa6018c0d2ede221a3ed.zip
Respond to GH comments and add /info endpoint
Diffstat (limited to 'packages/testnet-faucets/src/ts/server.ts')
-rw-r--r--packages/testnet-faucets/src/ts/server.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/testnet-faucets/src/ts/server.ts b/packages/testnet-faucets/src/ts/server.ts
index 23642787d..26edfff5a 100644
--- a/packages/testnet-faucets/src/ts/server.ts
+++ b/packages/testnet-faucets/src/ts/server.ts
@@ -19,6 +19,7 @@ const handler = new Handler();
app.get('/ping', (req: express.Request, res: express.Response) => {
res.status(200).send('pong');
});
+app.get('/info', handler.getQueueInfo.bind(handler));
app.get('/ether/:recipient', handler.dispenseEther.bind(handler));
app.get('/zrx/:recipient', handler.dispenseZRX.bind(handler));