Completed e2e bch-js rate limit tests

This commit is contained in:
Chris Troutner
2019-11-02 16:24:38 -07:00
parent 39faf7cd4c
commit 1c1bb25a54
4 changed files with 8 additions and 60 deletions
-2
View File
@@ -71,12 +71,10 @@ app.use(`/${v3prefix}/`, jwtAuth.getTokenFromHeaders)
// Instantiate the authorization middleware, used to implement pro-tier rate limiting.
const auth = new AuthMW()
// app.use(`/${v2prefix}/`, auth.mw())
app.use(`/${v3prefix}/`, auth.mw())
// Rate limit on all v3 routes
app.use(`/${v3prefix}/`, routeRateLimit) // Establish and enforce rate limits.
// app.use(`/${v3prefix}/`, jwtAuth.routeAccess) // Enforce access tiers.
app.use(`/${v3prefix}/` + `health-check`, healthCheckV3)
app.use(`/${v3prefix}/` + `blockchain`, blockchainV3.router)
app.use(`/${v3prefix}/` + `control`, controlV3.router)