update endpoints #15

Merged
marihachi merged 17 commits from work/endpoint-1 into master 2021-05-21 03:27:13 +00:00
2 changed files with 5 additions and 3 deletions
Showing only changes of commit 90e6a95887 - Show all commits

View file

@ -1,4 +1,4 @@
import { Announcement, Antenna, ID, InstanceMetadata, Note, OriginType, Page, ServerInfo, Stats, User, UserSorting } from './entities';
import { Announcement, Antenna, App, ID, InstanceMetadata, Note, OriginType, Page, ServerInfo, Stats, User, UserSorting } from './entities';
type TODO = Record<string, any>;
@ -78,8 +78,8 @@ export type Endpoints = {
'ap/show': { req: TODO; res: TODO; };
// app
'app/create': { req: TODO; res: TODO; };
'app/show': { req: TODO; res: TODO; };
'app/create': { req: TODO; res: App; };
'app/show': { req: { appId: ID; }; res: App; };
// auth
'auth/accept': { req: TODO; res: TODO; };

View file

@ -223,5 +223,7 @@ export type Antenna = {
// TODO
};
export type App = TODO;
export type UserSorting = '+follower' | '-follower' | '+createdAt' | '-createdAt' | '+updatedAt' | '-updatedAt';
export type OriginType = 'combined' | 'local' | 'remote';