'use strict';

const service = require('feathers-mongoose');
const filePermissionModel = require('./model');
const hooks = require('./hooks');

module.exports = function() {
  const app = this;

	const options = {
    Model: filePermissionModel,
    paginate: {
      default: 100,
      max: 100
    },
		lean: true
  };

  // Initialize our service with any options it requires
  app.use('/filePermissions', service(options));

  // Get our initialize service to that we can bind hooks
  const filePermissionService = app.service('/filePermissions');

  // Set up our before hooks
  filePermissionService.before(hooks.before);

  // Set up our after hooks
  filePermissionService.after(hooks.after);
};

@@ -273,16 +273,18 @@
 ult: 100
+00
 ,%0A      
@@ -291,16 +291,18 @@
 max: 100
+00
 %0A    %7D,%0A

increase limit