iceshrimp/src/server/api/endpoints/admin/delete-logs.ts

14 lines
247 B
TypeScript
Raw Normal View History

2019-05-23 14:11:42 +09:00
import define from '../../define';
import { Logs } from '../../../../models';
export const meta = {
tags: ['admin'],
requireCredential: true,
requireModerator: true,
};
export default define(meta, async (ps) => {
await Logs.delete({});
});