Implement local browser caching for shared groups and UI improvements
All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m10s

This commit is contained in:
Elijah 2026-07-10 16:01:22 -07:00
parent 42ed0d275b
commit 7af0935657
37 changed files with 6141 additions and 411 deletions

View file

@ -9,7 +9,7 @@ export async function POST(request: NextRequest) {
return NextResponse.json({ error: "Invalid request body" }, { status: 400 });
}
const { classId, data, name } = body;
const { classId, data, name, groupId } = body;
if (!classId || typeof classId !== "string") {
return NextResponse.json({ error: "classId is required" }, { status: 400 });
@ -27,7 +27,8 @@ export async function POST(request: NextRequest) {
const deck = await deckService.createDeckFromImport(
classId,
parsed.data,
name?.trim() || undefined
name?.trim() || undefined,
groupId || null
);
return NextResponse.json(deck, { status: 201 });