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:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user