video-flow-toon/src/routes/other/deleteAllData.ts
ACT丶流星雨 b719b38152 108版本
2026-03-19 16:05:54 +08:00

15 lines
382 B
TypeScript

import express from "express";
import initDB from "@/lib/initDB";
import { db } from "@/utils/db";
import { success } from "@/lib/responseFormat";
const router = express.Router();
// 清空数据表
export default router.post(
"/",
async (req, res) => {
await initDB(db, true);
res.status(200).send(success({ message: "清空数据表成功" }));
},
);