Sharkey/src/server/api/endpoints/admin/delete-logs.ts
2021-06-08 14:09:32 +09:00

13 lines
265 B
TypeScript

import define from '../../define';
import { Logs } from '../../../../models';
export const meta = {
tags: ['admin'],
requireCredential: true as const,
requireModerator: true,
};
export default define(meta, async (ps) => {
await Logs.clear(); // TRUNCATE
});