Skip to content

Commit

Permalink
remove old seedgen endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
jchartrand committed Sep 9, 2024
1 parent 6d46901 commit a91d51d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
9 changes: 0 additions & 9 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,6 @@ export async function build() {
}
})

app.get('/seedgen', async (req, res, next) => {
try {
const newSeed = await generateSeed({})
res.json(newSeed)
} catch (e) {
next(e)
}
})

app.post('/did-web-generator', async (req, res, next) => {
try {
const { url } = req.body
Expand Down
14 changes: 0 additions & 14 deletions src/app.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,20 +233,6 @@ describe('api', () => {
})
})

describe('/did-key-generator', () => {
it('returns a new did:key', async () => {
await request(app)
.get(`/seedgen`)
.expect('Content-Type', /json/)
.expect((res) => {
expect(res.body.seed).to.exist
expect(res.body.didDocument.id).to.contain('did:key')
expect(res.body.did).to.contain('did:key')
})
.expect(200)
})
})

describe('/healthz', () => {
it('returns 200 when healthy', async () => {
await request(app)
Expand Down

0 comments on commit a91d51d

Please sign in to comment.