feat: version 3.1.0 -- Acceso por modulo y por usuario
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { Router } from 'express';
|
||||
import { requireAuth } from '../../middleware/auth.js';
|
||||
import { requireModule } from '../../middleware/modules.js';
|
||||
import {
|
||||
getProjects, getProjectOptions, getProject, postProject, putProject, deleteProject, postProjectRestore,
|
||||
deleteProjectPermanent, postMember, putMemberRole, deleteMember,
|
||||
@@ -10,6 +11,7 @@ import { getActivitiesByProject, getActivitiesTrash, postActivity, putReorderAct
|
||||
const router = Router();
|
||||
|
||||
router.use(requireAuth);
|
||||
router.use(requireModule('projects'));
|
||||
router.get('/', getProjects);
|
||||
router.get('/options', getProjectOptions);
|
||||
router.post('/', postProject);
|
||||
|
||||
Reference in New Issue
Block a user