feat: improve ux and security
This commit is contained in:
@@ -4,7 +4,7 @@ import { z } from "zod";
|
||||
|
||||
const bodySchema = z.object({
|
||||
name: z.string().min(1),
|
||||
path: z.string().min(1),
|
||||
path: z.string().min(1).startsWith("/"),
|
||||
url: z.url(),
|
||||
disabled: z.boolean().optional(),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user