Refactoring
This commit is contained in:
@@ -97,7 +97,6 @@ router.get('/authenticate', function (req, res, next) {
|
||||
})(req, res, next);
|
||||
});
|
||||
router.post('/users', function (req, res, next) {
|
||||
console.log('ici post users');
|
||||
let user = new User();
|
||||
if (typeof req.body.user.username !== 'undefined') {
|
||||
user.username = req.body.user.username;
|
||||
|
||||
Reference in New Issue
Block a user