How to use the @feathersjs/express/errors function in @feathersjs/express

To help you get started, we’ve selected a few @feathersjs/express examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github petermikitsh / myethereumapp / src / server / app.js View on Github external
res.send(__CLIENT_JS__);
  });

  app.get(`/client-${__GIT_SHA__}.css`, (req, res) => {
    res.setHeader('Cache-Control', 'public, max-age=31536000');
    res.setHeader('content-type', 'text/css');
    res.send(__CLIENT_CSS__);
  });

  app
    .use(bodyParser.json())
    .use(bodyParser.urlencoded({ extended: true }))
    .configure(express.rest())
    .configure(socketio())
    .configure(services)
    .use(error({ html: false }));

  return app;
}