Update api definitions
This commit is contained in:
parent
aacfb5e221
commit
16726789da
66 changed files with 586 additions and 156 deletions
|
@ -6,12 +6,15 @@ import { ILocalUser } from '../../../../../models/user';
|
|||
import getParams from '../../../get-params';
|
||||
|
||||
export const meta = {
|
||||
name: 'notes/reactions/create',
|
||||
|
||||
desc: {
|
||||
ja: '投稿にリアクションします。'
|
||||
ja: '指定した投稿にリアクションします。',
|
||||
en: 'React to a note.'
|
||||
},
|
||||
|
||||
requireCredential: true,
|
||||
|
||||
kind: 'reaction-write',
|
||||
|
||||
params: {
|
||||
noteId: $.type(ID).note({
|
||||
desc: {
|
||||
|
@ -27,9 +30,6 @@ export const meta = {
|
|||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* React to a note
|
||||
*/
|
||||
export default (params: any, user: ILocalUser) => new Promise(async (res, rej) => {
|
||||
const [ps, psErr] = getParams(meta, params);
|
||||
if (psErr) return rej(psErr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue