diff --git a/backend/routes/authRoutes.js b/backend/routes/authRoutes.js index 388154b..851f208 100644 --- a/backend/routes/authRoutes.js +++ b/backend/routes/authRoutes.js @@ -2,8 +2,9 @@ const express = require('express'); const { register, login, refreshToken, users } = require('../controllers/authController'); const router = express.Router(); - -router.post('/register', register); +if (process.env.NODE_ENV !== 'production') { + router.post('/register', register); +} router.post('/login', login); router.post('/refresh-token', refreshToken); router.get('/users', users);