diff options
author | Fabio Berger <me@fabioberger.com> | 2018-02-07 08:26:35 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-02-07 08:26:35 +0800 |
commit | 4c9c4c487a034d926443eeb8a0154fd38c97aca3 (patch) | |
tree | b0d0f2a5d225097335733a3e37871f9c32551aa5 /packages/testnet-faucets/src/ts/server.ts | |
parent | c172b9e0800dd9ed959b03e7ee418b9787c70c38 (diff) | |
parent | 562bcb85710c281d817c7dd4957f0a7db1ddc306 (diff) | |
download | dexon-sol-tools-4c9c4c487a034d926443eeb8a0154fd38c97aca3.tar dexon-sol-tools-4c9c4c487a034d926443eeb8a0154fd38c97aca3.tar.gz dexon-sol-tools-4c9c4c487a034d926443eeb8a0154fd38c97aca3.tar.bz2 dexon-sol-tools-4c9c4c487a034d926443eeb8a0154fd38c97aca3.tar.lz dexon-sol-tools-4c9c4c487a034d926443eeb8a0154fd38c97aca3.tar.xz dexon-sol-tools-4c9c4c487a034d926443eeb8a0154fd38c97aca3.tar.zst dexon-sol-tools-4c9c4c487a034d926443eeb8a0154fd38c97aca3.zip |
Merge branch 'development' of github.com:0xProject/0x.js into development
* 'development' of github.com:0xProject/0x.js:
Bump subproviders version
Update yarn.lock
Change rpcUrls keys back into string literals
Add types-bn package to 0x.js and testnet-faucets
Prettier
Addressed comments and update 0xProject/types-ethereumjs-util deps
Prettier
Update testnet-faucets README
Fix lint errors
Add order signing and dispensing ability to faucet
Diffstat (limited to 'packages/testnet-faucets/src/ts/server.ts')
-rw-r--r-- | packages/testnet-faucets/src/ts/server.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/testnet-faucets/src/ts/server.ts b/packages/testnet-faucets/src/ts/server.ts index 26edfff5a..be1077756 100644 --- a/packages/testnet-faucets/src/ts/server.ts +++ b/packages/testnet-faucets/src/ts/server.ts @@ -3,6 +3,7 @@ import * as express from 'express'; import { errorReporter } from './error_reporter'; import { Handler } from './handler'; +import { parameterTransformer } from './parameter_transformer'; // Setup the errorReporter to catch uncaught exceptions and unhandled rejections errorReporter.setup(); @@ -20,8 +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', handler.dispenseEther.bind(handler)); -app.get('/zrx/:recipient', handler.dispenseZRX.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()); |