Skip to content

Commit

Permalink
fix: remove error
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomrdias committed Aug 25, 2022
1 parent 1a97a57 commit 1ba180b
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions packages/access-api/src/routes/version.js
Original file line number Diff line number Diff line change
@@ -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(),
})
}

0 comments on commit 1ba180b

Please sign in to comment.