Is it possible to disable the drawing in the sails?

Is it possible to disable the circuit on some controllers in the sails?

I created a controller and I would like to make it available only using the custom route that I provided in route.js, but when I like the controller / action, I still see the page.

In the controller, I defined _config: {blueprints: {action: false, rest: false, shortcuts: false }}

thanks

+7
source share
1 answer

There seems to be a mistake in the docs. You no longer need an internal blueprints object for your route controller configuration. Therefore, in your controller, simply do:

 _config: { actions: false, rest: false, shortcuts: false } 

and it should work fine. Sorry for this!

- Change -

The above is valid only for v0.10.x. For v0.9.x, you still need to determine your controller configuration using _config.blueprints .

+8
source share

All Articles