Skip to content
Snippets Groups Projects
Commit 0b83fea8 authored by Fernando Erd's avatar Fernando Erd :ok_hand:
Browse files

Add req.body fields

parent 840f6d50
No related branches found
No related tags found
2 merge requests!116Release v1.0.0,!77Change user
Pipeline #
......@@ -102,7 +102,7 @@ userApp.get('/:id', (req, res, next) => {
}
if(!user) {
req.statusCode = 404;
next({msg: 'User not found'});
next({msg: 'User not found'});
} else {
let u = user.toObject;
delete u.hashedPassword;
......@@ -119,6 +119,10 @@ userApp.post('/', (req, res, next) => {
password: req.body.password,
name: req.body.name,
cpf: req.body.cpf,
cep: req.body.cep,
complement: req.body.complement,
address: req.body.address,
phone: req.body.phone,
schooling: req.body.schooling,
course: req.body.course,
segment: req.body.segment,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment