mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
NIP-11 improvements
This commit is contained in:
parent
6b084ca917
commit
814d9397f5
1 changed files with 3 additions and 1 deletions
|
|
@ -9,6 +9,8 @@ const relayInfoController: AppController = async (c) => {
|
|||
const meta = await getInstanceMetadata(c.var);
|
||||
|
||||
c.res.headers.set('access-control-allow-origin', '*');
|
||||
c.res.headers.set('access-control-allow-headers', '*');
|
||||
c.res.headers.set('access-control-allow-methods', 'GET, POST, OPTIONS');
|
||||
|
||||
return c.json({
|
||||
name: meta.name,
|
||||
|
|
@ -16,7 +18,7 @@ const relayInfoController: AppController = async (c) => {
|
|||
pubkey: await conf.signer.getPublicKey(),
|
||||
contact: meta.email,
|
||||
supported_nips: [1, 5, 9, 11, 16, 45, 50, 46, 98],
|
||||
software: 'Ditto',
|
||||
software: 'https://gitlab.com/soapbox-pub/ditto',
|
||||
version: denoJson.version,
|
||||
limitation: {
|
||||
auth_required: false,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue