diff options
author | Fabio Berger <me@fabioberger.com> | 2018-06-12 05:42:30 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-06-12 05:42:30 +0800 |
commit | e1879ef4d91fc58203d9748eca38695b79c43674 (patch) | |
tree | 0a9a68927d5dc769b0c5cb2c5d9445849fb56e7c /packages/testnet-faucets/src/ts/server.ts | |
parent | b6df727efb74084a849330273a44cfc5ae3a85af (diff) | |
download | dexon-sol-tools-e1879ef4d91fc58203d9748eca38695b79c43674.tar dexon-sol-tools-e1879ef4d91fc58203d9748eca38695b79c43674.tar.gz dexon-sol-tools-e1879ef4d91fc58203d9748eca38695b79c43674.tar.bz2 dexon-sol-tools-e1879ef4d91fc58203d9748eca38695b79c43674.tar.lz dexon-sol-tools-e1879ef4d91fc58203d9748eca38695b79c43674.tar.xz dexon-sol-tools-e1879ef4d91fc58203d9748eca38695b79c43674.tar.zst dexon-sol-tools-e1879ef4d91fc58203d9748eca38695b79c43674.zip |
Fix no-unused-variable tslint rule to include parameters and fix issues
Diffstat (limited to 'packages/testnet-faucets/src/ts/server.ts')
-rw-r--r-- | packages/testnet-faucets/src/ts/server.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/testnet-faucets/src/ts/server.ts b/packages/testnet-faucets/src/ts/server.ts index 55c1d55d8..5416cdcc3 100644 --- a/packages/testnet-faucets/src/ts/server.ts +++ b/packages/testnet-faucets/src/ts/server.ts @@ -11,6 +11,7 @@ errorReporter.setup(); const app = express(); app.use(bodyParser.json()); // for parsing application/json +// tslint:disable-next-line:no-unused-variable app.use((req, res, next) => { res.header('Access-Control-Allow-Origin', '*'); res.header('Access-Control-Allow-Headers', 'Origin, X-Requested-With, Content-Type, Accept'); @@ -18,6 +19,7 @@ app.use((req, res, next) => { }); const handler = new Handler(); +// tslint:disable-next-line:no-unused-variable app.get('/ping', (req: express.Request, res: express.Response) => { res.status(constants.SUCCESS_STATUS).send('pong'); }); |