Skip to content

jooleearr/loopback-mixin-whitelist

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"
      ]
    }
  }
  ```

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%