mirror of
https://github.com/aljazceru/ditto.git
synced 2026-01-23 15:24:22 +01:00
Implement apps API (the stupid way)
This commit is contained in:
21
src/api/apps.ts
Normal file
21
src/api/apps.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
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 appVerifyCredentials(c: Context) {
|
||||
return c.json(FAKE_APP);
|
||||
}
|
||||
|
||||
export { appVerifyCredentials, createAppController };
|
||||
Reference in New Issue
Block a user