Skip to content

Commit

Permalink
Disabling register user role for production as temporary solution
Browse files Browse the repository at this point in the history
  • Loading branch information
rotirk20 committed Oct 19, 2024
1 parent 0c63ae0 commit a454737
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/routes/authRoutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a454737

Please sign in to comment.