complete-node-bootcamp
complete-node-bootcamp copied to clipboard
userController createUser route
There is no need for this route in userController.js
exports.createUser = (req, res) => {
res.status(500).json({
status: 'error',
message: 'This route is not yet defined! Please use /signup instead!',
})
}
Regular user will never reach this point, the route is restricted to admins only in userRoutes.js
Yeah, but its just a tutorial, he only used it to make a point while creating the route