mirror of
https://github.com/aljazceru/ditto.git
synced 2026-01-11 09:34:20 +01:00
22 lines
599 B
TypeScript
22 lines
599 B
TypeScript
import type { Context } from '@/deps.ts';
|
|
|
|
const FAKE_APP = {
|
|
id: '1',
|
|
name: 'Nostrverse',
|
|
website: null,
|
|
redirect_uri: 'urn:ietf:wg:oauth:2.0:oob',
|
|
client_id: 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA',
|
|
client_secret: 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA',
|
|
vapid_key: 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=',
|
|
};
|
|
|
|
function createAppController(c: Context) {
|
|
return c.json(FAKE_APP);
|
|
}
|
|
|
|
function appCredentialsController(c: Context) {
|
|
return c.json(FAKE_APP);
|
|
}
|
|
|
|
export { appCredentialsController, createAppController };
|