mirror of
https://github.com/fullstack-cash/bch-api.git
synced 2026-09-21 16:52:04 -07:00
Removing old rate limit middleware
This commit is contained in:
+1
-1
@@ -121,7 +121,7 @@ if (USE_RATE_LIMITS) {
|
|||||||
|
|
||||||
// Rate limit on all v4 routes
|
// Rate limit on all v4 routes
|
||||||
// Establish and enforce rate limits.
|
// Establish and enforce rate limits.
|
||||||
app.use(`/${v4prefix}/`, rateLimits.rateLimitByResource)
|
// app.use(`/${v4prefix}/`, rateLimits.rateLimitByResource)
|
||||||
}
|
}
|
||||||
// END Rate Limits
|
// END Rate Limits
|
||||||
|
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ class RateLimits {
|
|||||||
// support this function.
|
// support this function.
|
||||||
async applyRateLimits (req, res, next) {
|
async applyRateLimits (req, res, next) {
|
||||||
try {
|
try {
|
||||||
console.log('Starting applyRateLimits()')
|
// console.log('Starting applyRateLimits()')
|
||||||
// let userId
|
// let userId
|
||||||
// const decoded = {}
|
// const decoded = {}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user