Skip to content

Commit

Permalink
Add route
Browse files Browse the repository at this point in the history
  • Loading branch information
surbhit14 committed Oct 16, 2024
1 parent 903ed99 commit c12f23c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/api/src/routes/operators/operatorRoutes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
getOperator,
getAllOperatorAddresses,
getOperatorRewards,
getOperatorEvents,
invalidateMetadata
} from './operatorController'
import { authenticateJWT } from '../../utils/jwtUtils'
Expand Down Expand Up @@ -108,6 +109,8 @@ router.get('/:address', routeCache.cacheSeconds(120), getOperator)

router.get('/:address/rewards', routeCache.cacheSeconds(120), getOperatorRewards)

router.get('/:address/events', routeCache.cacheSeconds(120), getOperatorEvents)

// Protected routes
router.get(
'/:address/invalidate-metadata',
Expand Down

0 comments on commit c12f23c

Please sign in to comment.