const express = require('express');
let router = express.Router()

const models = require('../models');
const User = models.users

/* GET users listing. */
router.get('/', function(req, res, next) {
  res.send('respond with a resource');
});

router.post('/', function(req, res, next) {
  let lastname = req.body.last_name
  User.create({
    lastname: lastname,
  }).then(function(p) {
    res.json(p)
  }).catch(next)
})

router.get('/', function(req, res, next) {
  User.findAll().then(function(users) {
    res.json(users)
  }).catch(next)
})

module.exports = router;

@@ -286,24 +286,53 @@
 %7B%0A  let 
-lastname
+email = req.body.email%0A  let password
  = req.b
@@ -339,17 +339,16 @@
 ody.
-last_name
+password
 %0A  U
@@ -368,27 +368,44 @@
     
-lastname: lastname,
+email: email,%0A    password: password
 %0A  %7D

Change parameters