1d22adc42e
Backend (Express + MariaDB) y frontend (React + Vite, identidad Fluent/Windows) con el nucleo funcional: seguridad, organizacion, proyectos, actividades, subtareas, dependencias, dashboard, calendario, gantt, comentarios, adjuntos, notificaciones in-app y catalogos. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
8 lines
305 B
JavaScript
8 lines
305 B
JavaScript
import { ok, asyncHandler } from '../../utils/http.js';
|
|
import * as repo from './repository.js';
|
|
|
|
export const getAudit = asyncHandler(async (req, res) => {
|
|
const { entityType, entityId } = req.query;
|
|
ok(res, await repo.findAll({ entityType, entityId: entityId ? Number(entityId) : undefined }));
|
|
});
|