Notifications cronjob
This commit is contained in:
@@ -14,6 +14,7 @@ import readingRoutes from './reading.routes';
|
||||
import bulkUploadRoutes from './bulk-upload.routes';
|
||||
import auditRoutes from './audit.routes';
|
||||
import notificationRoutes from './notification.routes';
|
||||
import testRoutes from './test.routes';
|
||||
|
||||
// Create main router
|
||||
const router = Router();
|
||||
@@ -153,4 +154,14 @@ router.use('/audit-logs', auditRoutes);
|
||||
*/
|
||||
router.use('/notifications', notificationRoutes);
|
||||
|
||||
/**
|
||||
* Test routes (for development/testing only):
|
||||
* - POST /test/trigger-negative-flow - Manually trigger negative flow detection
|
||||
* - GET /test/negative-flow-meters - Get meters with negative flow
|
||||
* - GET /test/notifications-info - Get notifications system info
|
||||
*/
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
router.use('/test', testRoutes);
|
||||
}
|
||||
|
||||
export default router;
|
||||
|
||||
Reference in New Issue
Block a user