From 1ba180b2c8a2da5dd9d3a69f23bcd93022500d6e Mon Sep 17 00:00:00 2001 From: Hugo Dias Date: Thu, 25 Aug 2022 18:38:21 +0100 Subject: [PATCH] fix: remove error --- packages/access-api/src/routes/version.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/packages/access-api/src/routes/version.js b/packages/access-api/src/routes/version.js index aff8d94ce..506b634d0 100644 --- a/packages/access-api/src/routes/version.js +++ b/packages/access-api/src/routes/version.js @@ -1,15 +1,14 @@ -// import { JSONResponse } from '@web3-storage/worker-utils/response' +import { JSONResponse } from '@web3-storage/worker-utils/response' /** * @param {import('@web3-storage/worker-utils/router').ParsedRequest} event * @param {import('../bindings.js').RouteContext} env */ export function version(event, env) { - throw new Error('ipppp') - // return new JSONResponse({ - // version: env.config.VERSION, - // commit: env.config.COMMITHASH, - // branch: env.config.BRANCH, - // did: env.keypair.did(), - // }) + return new JSONResponse({ + version: env.config.VERSION, + commit: env.config.COMMITHASH, + branch: env.config.BRANCH, + did: env.keypair.did(), + }) }