feat(tiers): Enforcing tiered access to endpoints

This commit is contained in:
Chris Troutner
2019-10-31 16:47:52 -07:00
parent 9b5827752e
commit 1886a2cb3f
3 changed files with 156 additions and 11 deletions
+2 -1
View File
@@ -75,7 +75,8 @@ const auth = new AuthMW()
app.use(`/${v3prefix}/`, auth.mw())
// Rate limit on all v3 routes
app.use(`/${v3prefix}/`, routeRateLimit)
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)