var jsonServer = require('json-server');
var server = jsonServer.create();
var router = jsonServer.router({
  "users": []
});
var middlewares = jsonServer.defaults({
  static: __dirname + '/dist'
});

// set the port of our application
// process.env.PORT lets the port be set by Heroku
var port = process.env.PORT || 8080;

server.use(middlewares);
server.use("/api", router);

// set the home page route
server.get('/*', function (req, res) {
  res.sendFile(__dirname + '/dist/index.html');
});

server.listen(port, function () {
  console.log('App is running on http://localhost:' + port);
});

@@ -113,16 +113,450 @@
 sers%22: %5B
+%0A    %7B%0A      %22id%22: 1,%0A      %22image%22: %22../../assets/img/a2.jpg%22,%0A      %22position%22: %22Graphics designer%22,%0A      %22name%22: %22John Smith%22,%0A      %22company_adress%22: %22Riviera State 32/106%22,%0A      %22company%22: %22Twitter, Inc.%22,%0A      %22phone%22: %22(123) 456-7890%22,%0A      %22adress%22: %7B%0A        %22home_number%22: 795,%0A        %22street%22: %22Folsom Ave%22,%0A        %22apartment%22: %22Suite 600%22,%0A        %22city%22: %22San Francisco%22,%0A        %22code%22: %22CA 94107%22%0A      %7D%0A    %7D%0A  
 %5D%0A%7D);%0Ava

fix add user in server.js