feathersjs/feathers-redux

View on GitHub
example/server/middleware/index.js

Summary

Maintainability
A
0 mins
Test Coverage
'use strict';

const handler = require('feathers-errors/handler');
const notFound = require('feathers-errors/not-found');

module.exports = function () {
  // Add your custom middleware here. Remember, that
  // in Express the order matters, `notFound` and
  // the error handler have to go last.
  const app = this;

  app.use(notFound());
  app.use(handler());
};