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;