ditto/src/controllers/nostr/relay-info.ts
2023-12-19 21:15:41 -06:00

19 lines
476 B
TypeScript

import { AppController } from '@/app.ts';
import { Conf } from '@/config.ts';
const relayInfoController: AppController = (c) => {
return c.json({
name: 'Ditto',
description: 'Nostr and the Fediverse.',
pubkey: '<administrative contact pubkey>',
contact: `mailto:${Conf.adminEmail}`,
supported_nips: [1, 5, 9, 11, 45, 46, 98],
software: 'Ditto',
version: '0.0.0',
limitation: {
// TODO.
},
});
};
export { relayInfoController };