# customized feathers-mongoose-casl/services

If you need to customized feathers-mongoose-casl/services you can copt the files from node\_modules to your folder

### 1 - open node\_modules\feathers-mongoose-casl\lib

### 2- copy the service folder to your src/services

### 3- fix on top of the files the dependence

pass over the files and find where you need to change the import path,\
you can see it is ready to you with comments in the files\
you can just search for " require('feathers-mongoose-casl')" and find all the place to change\
\
for example

Before

<div align="left"><img src="https://1499183940-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LY13uPlo20E7hNPj1d2%2F-LYDrMU8shj0ykfigE9p%2F-LYDrjoVU544h5w7DTi9%2Fbefore.jpg?alt=media&#x26;token=a4ba57ae-72d9-42c4-bd9a-977a9ce5196e" alt=""></div>

after

<div align="left"><img src="https://1499183940-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LY13uPlo20E7hNPj1d2%2F-LYDrMU8shj0ykfigE9p%2F-LYDs50PvrwZustyMqow%2Fafter.jpg?alt=media&#x26;token=590b7cc6-de98-4f34-b0f2-7510f2c8388a" alt=""></div>

### 4- Open src\services\index.js and require the service from is new location<br>

```javascript
const users= require('./users/users.service.js');
const authManagement= require('./authmanagement/authmanagement.service.js');
const notifier= require('./authmanagement\notifier\index.js');
const mailer= require('./mailer/mailer.service.js');
const rules= require('./rules/rules.service.js');
const uploads= require('./uploads/uploads.service.js');
const files= require('./files/files.service.js');
const sms= require('./sms/sms.service.js');
const dashboard= require('./dashboard/dashboard.service.js');
const userAbilities= require('./userAbilities/userAbilities.service.js');

// eslint-disable-next-line no-unused-vars
module.exports = function (app) {
  // copy from feathers-mongoose-casl services
  app.configure(users);
  app.configure(authManagement);
  app.configure(notifier);
  app.configure(mailer);
  app.configure(rules);
  app.configure(uploads);
  app.configure(files);
  // app.configure(sms) // we disabled this for now
  app.configure(dashboard);
  app.configure(userAbilities);
};

```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://feathersjs-mongoose.gitbook.io/feathers-mongoose-casl/docs/guides/customized-feathers-mongoose-casl-services.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
