better reg
This commit is contained in:
parent
711f9516e5
commit
d8c786df79
|
@ -175,8 +175,7 @@ ExpressApp.prototype.start = function(opts, cb) {
|
|||
if (Defaults.RateLimit.createWallet) {
|
||||
log.info('', 'Limiting wallet creation per IP: %d req/h', (Defaults.RateLimit.createWallet.max / Defaults.RateLimit.createWallet.windowMs * 60 * 60 * 1000).toFixed(2))
|
||||
var createWalletLimiter = new RateLimit(Defaults.RateLimit.createWallet);
|
||||
router.use(/\v1\/wallets\/$/, createWalletLimiter)
|
||||
router.use(/\/v2\/wallets\/$/, createWalletLimiter)
|
||||
router.use(/\/v\d+\/wallets\/$/, createWalletLimiter)
|
||||
}
|
||||
|
||||
// DEPRECATED
|
||||
|
|
Loading…
Reference in New Issue