From c12f23c5abd867c80230cf29b59fe1cdde3aba73 Mon Sep 17 00:00:00 2001 From: surbhit14 Date: Wed, 16 Oct 2024 16:36:51 +0530 Subject: [PATCH] Add route --- packages/api/src/routes/operators/operatorRoutes.ts | 3 +++ 1 file changed, 3 insertions(+) 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',