Notifications cronjob

This commit is contained in:
2026-02-01 22:29:48 -06:00
parent 48e0884bf7
commit 8ca10d0b35
5 changed files with 367 additions and 7 deletions

View File

@@ -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;