Skip to content

Commit

Permalink
fix: redirect on success (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
jchris authored Sep 28, 2022
1 parent 30931b2 commit 0e67f3b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/access-api/src/routes/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ export async function validate(req, env) {
if (req.query && req.query.ucan) {
await validations.create(req.query.ucan)

return new Response('Done')
return new Response('Success', {
status: 307,
headers: { location: 'https://web3.storage/' },
})
}

if (req.query && req.query.did) {
Expand Down

0 comments on commit 0e67f3b

Please sign in to comment.