const error = require('./lib/rest/error')
const lib = require('./lib/netiam')
const middleware = require('./lib/middleware')
const plugins = require('./lib/plugins')
const models = require('./lib/rest/models')
const RoleSchema = require('./lib/rest/schema/role')
const schemaPlugins = require('./lib/rest/schema/plugins')

lib.error = error
lib.middleware = middleware
lib.plugins = plugins
lib.models = models
lib.schema = {
  Role: RoleSchema,
  plugins: schemaPlugins
}

module.exports = lib

@@ -1,46 +1,4 @@
-const error = require('./lib/rest/error')%0A
 cons
@@ -278,26 +278,8 @@
 ')%0A%0A
-lib.error = error%0A
 lib.

remove error export from index