Deploy rule, CRM enhancements, Company Employee category, bilingual, contacts module completion
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { Router } from 'express';
|
||||
import { body, param } from 'express-validator';
|
||||
import { dealsController, quotesController } from './crm.controller';
|
||||
import { pipelinesController, dealsController, quotesController } from './crm.controller';
|
||||
import { authenticate, authorize } from '../../shared/middleware/auth';
|
||||
import { validate } from '../../shared/middleware/validation';
|
||||
|
||||
@@ -9,6 +9,24 @@ const router = Router();
|
||||
// All routes require authentication
|
||||
router.use(authenticate);
|
||||
|
||||
// ============= PIPELINES =============
|
||||
|
||||
// Get all pipelines
|
||||
router.get(
|
||||
'/pipelines',
|
||||
authorize('crm', 'deals', 'read'),
|
||||
pipelinesController.findAll
|
||||
);
|
||||
|
||||
// Get pipeline by ID
|
||||
router.get(
|
||||
'/pipelines/:id',
|
||||
authorize('crm', 'deals', 'read'),
|
||||
param('id').isUUID(),
|
||||
validate,
|
||||
pipelinesController.findById
|
||||
);
|
||||
|
||||
// ============= DEALS =============
|
||||
|
||||
// Get all deals
|
||||
|
||||
Reference in New Issue
Block a user