diff --git a/zp-relayer/endpoints.ts b/zp-relayer/endpoints.ts index cb2e0875..6236027b 100644 --- a/zp-relayer/endpoints.ts +++ b/zp-relayer/endpoints.ts @@ -180,6 +180,10 @@ async function getLimits(req: Request, res: Response) { res.json(limitsFetch) } +function root(req: Request, res: Response) { + return res.sendStatus(200) +} + export default { txProof, sendTransaction, @@ -191,4 +195,5 @@ export default { relayerInfo, getFee, getLimits, + root, } diff --git a/zp-relayer/router.ts b/zp-relayer/router.ts index eacf43ee..221120bb 100644 --- a/zp-relayer/router.ts +++ b/zp-relayer/router.ts @@ -30,6 +30,7 @@ router.use((err: any, req: Request, res: Response, next: NextFunction) => { // Used only for testing as proving on client is now slow router.post('/proof_tx', endpoints.txProof) +router.get('/', endpoints.root) router.post('/sendTransaction', wrapErr(endpoints.sendTransaction)) router.post('/sendTransactions', wrapErr(endpoints.sendTransactions)) router.get('/transactions', wrapErr(endpoints.getTransactions))