feat: 数据集合管理

This commit is contained in:
archer
2023-03-25 12:55:32 +08:00
parent 8a9f1ed29b
commit 3db690773f
14 changed files with 244 additions and 13 deletions

View File

@@ -11,6 +11,9 @@ import { sendTrainSucceed } from '@/service/utils/sendEmail';
import { httpsAgent } from '@/service/utils/tools';
export default async function handler(req: NextApiRequest, res: NextApiResponse) {
if (req.headers.auth !== 'archer') {
throw new Error('凭证错误');
}
try {
await connectToDatabase();