Ozone: add metadata endpoint (#3735)
* ozone: add well-known metadata endpoint * ozone changeset
This commit is contained in:
parent
3fcd221111
commit
0759f0feed
5
.changeset/tall-rice-sparkle.md
Normal file
5
.changeset/tall-rice-sparkle.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"@atproto/ozone": patch
|
||||
---
|
||||
|
||||
Added well-known metadata endpoint to ozone.
|
@ -3,7 +3,7 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- divy/ozone-passthru
|
||||
- divy/ozone-metadata
|
||||
env:
|
||||
REGISTRY: ${{ secrets.AWS_ECR_REGISTRY_USEAST2_PACKAGES_REGISTRY }}
|
||||
USERNAME: ${{ secrets.AWS_ECR_REGISTRY_USEAST2_PACKAGES_USERNAME }}
|
||||
|
@ -31,5 +31,13 @@ export const createRouter = (ctx: AppContext): Router => {
|
||||
})
|
||||
})
|
||||
|
||||
router.get('/.well-known/ozone-metadata.json', (_req, res) => {
|
||||
return res.json({
|
||||
did: ctx.cfg.service.did,
|
||||
url: ctx.cfg.service.publicUrl,
|
||||
publicKey: ctx.signingKey.did(),
|
||||
})
|
||||
})
|
||||
|
||||
return router
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user