-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(access-api): test error in staging
- Loading branch information
1 parent
ad69e47
commit 1a97a57
Showing
1 changed file
with
8 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(), | ||
// }) | ||
} |