diff --git a/packages/api/src/routes/operators/operatorRoutes.ts b/packages/api/src/routes/operators/operatorRoutes.ts index 13ae1643..218a781e 100644 --- a/packages/api/src/routes/operators/operatorRoutes.ts +++ b/packages/api/src/routes/operators/operatorRoutes.ts @@ -4,6 +4,7 @@ import { getOperator, getAllOperatorAddresses, getOperatorRewards, + getOperatorEvents, invalidateMetadata } from './operatorController' import { authenticateJWT } from '../../utils/jwtUtils' @@ -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',