loopback-mixin-whitelist

Whitelist which remote methods are automatically exposed through the api via a whitelist on the model.json definition file

Showing:

Popularity

Downloads/wk

46

GitHub Stars

2

Maintenance

Last Commit

4yrs ago

Contributors

2

Package

Dependencies

0

Size (min+gzip)

0.4KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

loopback-mixin-whitelist

Whitelist which remote methods are automatically exposed through the api via a whitelist on the model.json definition file

NPM

Media Suite

Build Status

Installation

npm install loopback-mixin-whitelist --save

Usage

Create your own mixin file in the server/mixins directory (e.g. server/mixins/method-whitelist.js)

The contents of the file should be:

module.exports = require('loopback-mixin-whitelist')

Then, in your model .json file, you can whitelist methods as:

"mixins": {
    ...
    "MethodWhitelist": {
      "expose": [
        "findById"
      ]
    }
  }
  ```

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100