···
getTranscriptionsForClass,
···
const classId = req.params.id;
3195
+
// Verify class exists
3196
+
const existingClass = getClassById(classId);
3197
+
if (!existingClass) {
3198
+
return Response.json({ error: "Class not found" }, { status: 404 });
return Response.json({ success: true });
···
3223
+
// Verify class exists
3224
+
const existingClass = getClassById(classId);
3225
+
if (!existingClass) {
3226
+
return Response.json({ error: "Class not found" }, { status: 404 });
toggleClassArchive(classId, archived);
return Response.json({ success: true });
···
return Response.json({ error: "Email required" }, { status: 400 });
3259
+
// Verify class exists
3260
+
const existingClass = getClassById(classId);
3261
+
if (!existingClass) {
3262
+
return Response.json({ error: "Class not found" }, { status: 404 });
const user = getUserByEmail(email);
return Response.json({ error: "User not found" }, { status: 404 });
···
return Response.json({ error: "Invalid user ID" }, { status: 400 });
3288
+
// Verify class exists
3289
+
const existingClass = getClassById(classId);
3290
+
if (!existingClass) {
3291
+
return Response.json({ error: "Class not found" }, { status: 404 });
removeUserFromClass(userId, classId);
return Response.json({ success: true });
···
return Response.json({ error: "Label required" }, { status: 400 });
3333
+
// Verify class exists
3334
+
const existingClass = getClassById(classId);
3335
+
if (!existingClass) {
3336
+
return Response.json({ error: "Class not found" }, { status: 404 });
const meetingTime = createMeetingTime(classId, label);
return Response.json(meetingTime);
···
return Response.json({ error: "Label required" }, { status: 400 });
3358
+
// Verify meeting exists
3359
+
const existingMeeting = getMeetingById(meetingId);
3360
+
if (!existingMeeting) {
3361
+
return Response.json({ error: "Meeting not found" }, { status: 404 });
updateMeetingTime(meetingId, label);
return Response.json({ success: true });
···
const meetingId = req.params.id;
3375
+
// Verify meeting exists
3376
+
const existingMeeting = getMeetingById(meetingId);
3377
+
if (!existingMeeting) {
3378
+
return Response.json({ error: "Meeting not found" }, { status: 404 });
deleteMeetingTime(meetingId);
return Response.json({ success: true });