New share URL form.

This commit is contained in:
Mike Cao 2025-06-21 01:45:36 -07:00
parent 543674c7f2
commit 6d1603fa28
14 changed files with 144 additions and 116 deletions

View file

@ -31,8 +31,8 @@ export async function POST(
{ params }: { params: Promise<{ websiteId: string }> },
) {
const schema = z.object({
name: z.string(),
domain: z.string(),
name: z.string().optional(),
domain: z.string().optional(),
shareId: z.string().regex(SHARE_ID_REGEX).nullable().optional(),
});