Skip to content

Commit

Permalink
fix(access-api): test error in staging
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomrdias committed Aug 25, 2022
1 parent ad69e47 commit 1a97a57
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions packages/access-api/src/routes/version.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
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) {
return new JSONResponse({
version: env.config.VERSION,
commit: env.config.COMMITHASH,
branch: env.config.BRANCH,
did: env.keypair.did(),
})
throw new Error('ipppp')
// return new JSONResponse({
// version: env.config.VERSION,
// commit: env.config.COMMITHASH,
// branch: env.config.BRANCH,
// did: env.keypair.did(),
// })
}

0 comments on commit 1a97a57

Please sign in to comment.