mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-15 04:43:08 +02:00
21 lines
379 B
TypeScript
21 lines
379 B
TypeScript
|
import $ from 'cafy';
|
||
|
import define from '../../../define';
|
||
|
import { removeRelay } from '../../../../../services/relay';
|
||
|
|
||
|
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);
|
||
|
});
|