Initial commit: teaching institution management API.
Express/MongoDB backend with JWT auth, RBAC, S3 uploads, notifications, and scheduled jobs.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
// /components/activityLogs/activityLogController.js
|
||||
'use strict';
|
||||
|
||||
const catchAsync = require('../../utils/catchAsync');
|
||||
const activityLogService = require('./activityLogService');
|
||||
const { successResponse, listResponse } = require('../../utils/apiResponse');
|
||||
|
||||
exports.getAll = catchAsync(async (req, res) => {
|
||||
const { data, meta } = await activityLogService.getAllActivityLogs(req.query);
|
||||
return listResponse(res, 200, data, meta);
|
||||
});
|
||||
|
||||
exports.getActions = catchAsync(async (req, res) => {
|
||||
const actions = activityLogService.getActivityActions();
|
||||
return successResponse(res, 200, 'Activity actions retrieved successfully', actions);
|
||||
});
|
||||
Reference in New Issue
Block a user