feat: 添加数据验证功能确保图像有效性
Some checks failed
Build Server / Compile DLL (push) Failing after 1m54s

- 在项目依赖中添加了@hono/zod-validator和zod包。
- 添加依赖库"@hono/zod-validator"和"zod"以增强数据验证功能。
- 添加了请求验证以确保提供了有效的图像文件。
This commit is contained in:
2025-07-18 22:50:23 +08:00
parent 7fca8d8df6
commit 97b4c38863
3 changed files with 28 additions and 17 deletions

View File

@@ -11,7 +11,9 @@
"typescript": "^5.8.3"
},
"dependencies": {
"hono": "^4.8.4"
"@hono/zod-validator": "^0.7.1",
"hono": "^4.8.4",
"zod": "^4.0.5"
},
"devDependencies": {
"@antfu/eslint-config": "^4.16.2",