Skip to content

Commit

Permalink
Merge pull request #306 from EigenExplorer/hotfix/remove-rate-limit-temp
Browse files Browse the repository at this point in the history
Patch authenticator and rate limit middleware
  • Loading branch information
uditdc authored Dec 17, 2024
2 parents a08e251 + e36281f commit 2e1fec2
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions packages/api/src/routes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import auxiliaryRoutes from './auxiliary/auxiliaryRoutes'
import rewardRoutes from './rewards/rewardRoutes'
import eventRoutes from './events/eventsRoutes'
import authRoutes from './auth/authRoutes'
import { authenticator, rateLimiter } from '../utils/authMiddleware'

const apiRouter = express.Router()

Expand All @@ -23,16 +22,16 @@ apiRouter.get('/version', (_, res) =>
)

// Remaining routes
apiRouter.use('/avs', authenticator, rateLimiter, avsRoutes)
apiRouter.use('/strategies', authenticator, rateLimiter, strategiesRoutes)
apiRouter.use('/operators', authenticator, rateLimiter, operatorRoutes)
apiRouter.use('/stakers', authenticator, rateLimiter, stakerRoutes)
apiRouter.use('/metrics', authenticator, rateLimiter, metricRoutes)
apiRouter.use('/withdrawals', authenticator, rateLimiter, withdrawalRoutes)
apiRouter.use('/deposits', authenticator, rateLimiter, depositRoutes)
apiRouter.use('/aux', authenticator, rateLimiter, auxiliaryRoutes)
apiRouter.use('/rewards', authenticator, rateLimiter, rewardRoutes)
apiRouter.use('/events', authenticator, rateLimiter, eventRoutes)
apiRouter.use('/auth', authenticator, rateLimiter, authRoutes)
apiRouter.use('/avs', avsRoutes)
apiRouter.use('/strategies', strategiesRoutes)
apiRouter.use('/operators', operatorRoutes)
apiRouter.use('/stakers', stakerRoutes)
apiRouter.use('/metrics', metricRoutes)
apiRouter.use('/withdrawals', withdrawalRoutes)
apiRouter.use('/deposits', depositRoutes)
apiRouter.use('/aux', auxiliaryRoutes)
apiRouter.use('/rewards', rewardRoutes)
apiRouter.use('/events', eventRoutes)
apiRouter.use('/auth', authRoutes)

export default apiRouter

0 comments on commit 2e1fec2

Please sign in to comment.