updating settings

This commit is contained in:
2024-09-10 14:20:46 -06:00
parent 5d82102a75
commit ff520233d6
10 changed files with 238 additions and 25 deletions

View File

@@ -12,3 +12,14 @@ export const GET = async (
const settings = await fileStorageService.getCourseSettings(courseName);
return Response.json(settings);
});
export const PUT = async (
request: Request,
{ params: { courseName } }: { params: { courseName: string } }
) =>
await withErrorHandling(async () => {
const settings = await request.json();
await fileStorageService.updateCourseSettings(courseName, settings);
return Response.json({});
});