diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-02-06 08:28:03 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-02-06 10:11:26 +0800 |
commit | 83d0bad3a1e6635dedb46fbd99ee1bec5246d4bf (patch) | |
tree | 626fd908627a4b6b7e48c3b7326c12a1f30c2f5f /packages/testnet-faucets/src/ts/server.ts | |
parent | 99b1f81e89e3ac929c7829552ea7ae19998524e9 (diff) | |
download | dexon-sol-tools-83d0bad3a1e6635dedb46fbd99ee1bec5246d4bf.tar dexon-sol-tools-83d0bad3a1e6635dedb46fbd99ee1bec5246d4bf.tar.gz dexon-sol-tools-83d0bad3a1e6635dedb46fbd99ee1bec5246d4bf.tar.bz2 dexon-sol-tools-83d0bad3a1e6635dedb46fbd99ee1bec5246d4bf.tar.lz dexon-sol-tools-83d0bad3a1e6635dedb46fbd99ee1bec5246d4bf.tar.xz dexon-sol-tools-83d0bad3a1e6635dedb46fbd99ee1bec5246d4bf.tar.zst dexon-sol-tools-83d0bad3a1e6635dedb46fbd99ee1bec5246d4bf.zip |
Addressed comments and update 0xProject/types-ethereumjs-util deps
Diffstat (limited to 'packages/testnet-faucets/src/ts/server.ts')
-rw-r--r-- | packages/testnet-faucets/src/ts/server.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/testnet-faucets/src/ts/server.ts b/packages/testnet-faucets/src/ts/server.ts index 38c2f1428..be1077756 100644 --- a/packages/testnet-faucets/src/ts/server.ts +++ b/packages/testnet-faucets/src/ts/server.ts @@ -3,7 +3,7 @@ import * as express from 'express'; import { errorReporter } from './error_reporter'; import { Handler } from './handler'; -import { parameterExtractor } from './parameter_extractor'; +import { parameterTransformer } from './parameter_transformer'; // Setup the errorReporter to catch uncaught exceptions and unhandled rejections errorReporter.setup(); @@ -21,10 +21,10 @@ 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', parameterExtractor.extract, handler.dispenseEther.bind(handler)); -app.get('/zrx/:recipient', parameterExtractor.extract, handler.dispenseZRX.bind(handler)); -app.get('/order/weth/:recipient', parameterExtractor.extract, handler.dispenseWETHOrder.bind(handler)); -app.get('/order/zrx/:recipient', parameterExtractor.extract, handler.dispenseZRXOrder.bind(handler)); +app.get('/ether/:recipient', parameterTransformer.transform, handler.dispenseEther.bind(handler)); +app.get('/zrx/:recipient', parameterTransformer.transform, handler.dispenseZRX.bind(handler)); +app.get('/order/weth/:recipient', parameterTransformer.transform, handler.dispenseWETHOrder.bind(handler)); +app.get('/order/zrx/:recipient', parameterTransformer.transform, handler.dispenseZRXOrder.bind(handler)); // Log to rollbar any errors unhandled by handlers app.use(errorReporter.errorHandler()); |