Global basis:
Blueprint API configuration is defined in /config/blueprint.js
file. You can
enable or disable all three types of blueprint routes for all controllers from
there. As example, if you want to disable blueprint shortcut routes for all of
your controllers but want to keep both action and rest routes enabled, then
your /config/blueprint.js
should be like this -
module.exports.blueprints = {
action: true,
rest: true,
shortcut: false
}
On per-controller basis:
You may also override any of the settings from /config/blueprints.js
on a
per-controller basis by defining a '_config' key in your controller defintion,
and assigning it a configuration object with overrides for the settings in this
file. As example if you want to have shortcut routes enabled only for your user
controller but not for any more controllers then with the above blueprint
configuration you have to have following key value pair in user controller.
module.exports = {
_config: {
actions: true,
shortcuts: true,
rest: true
}
}