Skip to content

This is a loopback 3 mixin I find myself using every now and then. Probably not a good one but whatever.

Notifications You must be signed in to change notification settings

Danwakeem/loopback-disabler-mixin

Repository files navigation

Loopback Disabler Mixin

Build Status Coverage Status

This loopback middleware is an easyish way to disable common remote methods

Useage

Install

npm i loopback-disabler-mixin --save

Integrate with Loopback

Include the mixin in your model-config.json file

{
  "mixins": [
    "../node_modules/loopback-disabler-mixin"
  ]
}

Then add the mix in to your model.json file

"mixins": {
  "Disabler": {
    "type": "relation | model | limited",
    "relation": "RELATION NAME"
  }
},

About

This is a loopback 3 mixin I find myself using every now and then. Probably not a good one but whatever.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published