mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
19 lines
476 B
TypeScript
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 };
|