From 58a3efa55c6f07d91d2b58e9b746af82c7879d3f Mon Sep 17 00:00:00 2001 From: Esteban Date: Sun, 1 Feb 2026 22:46:21 -0600 Subject: [PATCH] Dev validation deleted --- water-api/src/routes/index.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/water-api/src/routes/index.ts b/water-api/src/routes/index.ts index e767957..38f5a67 100644 --- a/water-api/src/routes/index.ts +++ b/water-api/src/routes/index.ts @@ -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); -} +router.use('/test', testRoutes); export default router;