mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 07:38:33 -06:00
more centralization
This commit is contained in:
@@ -8,9 +8,9 @@ export const GET = async (
|
||||
}: { params: { courseName: string; moduleName: string } }
|
||||
) =>
|
||||
await withErrorHandling(async () => {
|
||||
const settings = await fileStorageService.pages.getPageNames(
|
||||
const pages = await fileStorageService.pages.getPages(
|
||||
courseName,
|
||||
moduleName
|
||||
);
|
||||
return Response.json(settings);
|
||||
return Response.json(pages);
|
||||
});
|
||||
|
||||
@@ -8,9 +8,9 @@ export const GET = async (
|
||||
}: { params: { courseName: string; moduleName: string } }
|
||||
) =>
|
||||
await withErrorHandling(async () => {
|
||||
const settings = await fileStorageService.quizzes.getQuizNames(
|
||||
const quizzes = await fileStorageService.quizzes.getQuizzes(
|
||||
courseName,
|
||||
moduleName
|
||||
);
|
||||
return Response.json(settings);
|
||||
return Response.json(quizzes);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user