hippofish/src/server/api/endpoints/admin/delete-logs.ts
2019-05-23 14:11:42 +09:00

13 lines
247 B
TypeScript

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({});
});