Dev validation deleted
This commit is contained in:
@@ -155,13 +155,15 @@ router.use('/audit-logs', auditRoutes);
|
||||
router.use('/notifications', notificationRoutes);
|
||||
|
||||
/**
|
||||
* Test routes (for development/testing only):
|
||||
* Test routes (ADMIN only):
|
||||
* - POST /test/create-negative-flow-meter - Create test meter with negative flow
|
||||
* - 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
|
||||
* - DELETE /test/cleanup-test-data - Clean up test data
|
||||
*
|
||||
* Note: All test endpoints require ADMIN role authentication
|
||||
*/
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
router.use('/test', testRoutes);
|
||||
}
|
||||
|
||||
export default router;
|
||||
|
||||
Reference in New Issue
Block a user