wbyoung/admit-one

View on GitHub
lib/middleware.js

Summary

Maintainability
A
0 mins
Test Coverage
'use strict';

module.exports = function(adapter, middleware, opts) {
  var load = function(name) {
    return require('./middleware/' + name)(adapter, middleware, opts);
  };
  return {
    _login: load('login'),
    create: load('create'),
    authenticate: load('authenticate'),
    authorize: load('authorize'),
    extract: load('extract'),
    invalidate: load('invalidate')
  };
};