2020-05-10 18:42:31 +09:00
|
|
|
import $ from 'cafy';
|
2021-08-19 21:55:45 +09:00
|
|
|
import define from '../../../define';
|
|
|
|
import { removeRelay } from '@/services/relay';
|
2020-05-10 18:42:31 +09:00
|
|
|
|
|
|
|
export const meta = {
|
|
|
|
tags: ['admin'],
|
|
|
|
|
|
|
|
requireCredential: true as const,
|
|
|
|
requireModerator: true as const,
|
|
|
|
|
|
|
|
params: {
|
|
|
|
inbox: {
|
2021-12-09 23:58:30 +09:00
|
|
|
validator: $.str,
|
2020-05-10 18:42:31 +09:00
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
2022-01-03 02:12:50 +09:00
|
|
|
// eslint-disable-next-line import/no-default-export
|
2020-05-10 18:42:31 +09:00
|
|
|
export default define(meta, async (ps, user) => {
|
|
|
|
return await removeRelay(ps.inbox);
|
|
|
|
});
|