Add website binding to boards with filter and date controls.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Mike Cao 2026-02-05 22:04:59 -08:00
parent d3d86f43fa
commit f66a508892
5 changed files with 48 additions and 5 deletions

View file

@ -33,6 +33,7 @@ export async function POST(request: Request) {
slug: z.string().max(100),
userId: z.uuid().nullable().optional(),
teamId: z.uuid().nullable().optional(),
parameters: z.object({ websiteId: z.uuid().optional() }).passthrough().optional(),
});
const { auth, body, error } = await parseRequest(request, schema);
@ -50,7 +51,7 @@ export async function POST(request: Request) {
const data = {
...body,
id: uuid(),
parameters: {},
parameters: body.parameters ?? {},
slug: uuid(),
userId: !teamId ? auth.user.id : undefined,
};