2020-05-10 18:42:31 +09:00
|
|
|
import $ from 'cafy';
|
2021-08-19 18:33:41 +09:00
|
|
|
import define from '../../../define.js';
|
|
|
|
import { removeRelay } from '@/services/relay.js';
|
2020-05-10 18:42:31 +09:00
|
|
|
|
|
|
|
export const meta = {
|
|
|
|
tags: ['admin'],
|
|
|
|
|
|
|
|
requireCredential: true as const,
|
|
|
|
requireModerator: true as const,
|
|
|
|
|
|
|
|
params: {
|
|
|
|
inbox: {
|
|
|
|
validator: $.str
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export default define(meta, async (ps, user) => {
|
|
|
|
return await removeRelay(ps.inbox);
|
|
|
|
});
|