feat: add pending student registration flow and pricing APIs.

Support public class lookup, user provisioning, installment pricing, and admin approval before final enrollment.
This commit is contained in:
2026-08-16 08:42:25 +03:30
parent fafc362689
commit cd98adff84
13 changed files with 678 additions and 3 deletions
+5
View File
@@ -49,3 +49,8 @@ exports.getPublicClasses = catchAsync(async (req, res) => {
const { data, meta } = await classService.getPublicClasses(req.query);
return listResponse(res, 200, data, meta);
});
exports.getPublicOne = catchAsync(async (req, res) => {
const cls = await classService.getPublicOne(req.params.id);
return successResponse(res, 200, 'Class retrieved successfully', cls);
});