mirror of
https://github.com/crocofied/CoreControl.git
synced 2025-12-17 23:47:13 +00:00
Fix Network API Routes
This commit is contained in:
parent
065ff7190a
commit
f2381c5931
@ -4,7 +4,7 @@ import { z } from "zod/v4";
|
|||||||
|
|
||||||
const schema = z.object({
|
const schema = z.object({
|
||||||
id: z.string(),
|
id: z.string(),
|
||||||
siteId: z.string(),
|
siteId: z.number(),
|
||||||
name: z.string().min(2),
|
name: z.string().min(2),
|
||||||
ipv4Subnet: z.string().optional(),
|
ipv4Subnet: z.string().optional(),
|
||||||
ipv6Subnet: z.string().optional(),
|
ipv6Subnet: z.string().optional(),
|
||||||
|
|||||||
@ -3,7 +3,7 @@ import prisma from "@/app/prisma";
|
|||||||
import { z } from "zod/v4";
|
import { z } from "zod/v4";
|
||||||
|
|
||||||
const schema = z.object({
|
const schema = z.object({
|
||||||
id: z.string(),
|
id: z.number(),
|
||||||
name: z.string().min(2),
|
name: z.string().min(2),
|
||||||
ipv4Subnet: z.string().optional(),
|
ipv4Subnet: z.string().optional(),
|
||||||
ipv6Subnet: z.string().optional(),
|
ipv6Subnet: z.string().optional(),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user