修复url不存在问题

This commit is contained in:
ACT丶流星雨 2026-04-07 05:33:38 +08:00
parent efd6511580
commit 48261eea10
3 changed files with 517 additions and 297 deletions

View File

@ -23,7 +23,7 @@ export default router.post(
"/",
validateFields({
source: z.enum(["toonflow", "github", "gitee", "atomgit"]),
url: z.url().optional(),
url: z.url().nullable().optional(),
}),
async (req, res) => {
const { source, url } = req.body;

810
yarn.lock

File diff suppressed because it is too large Load Diff