Make an ajax call to component

Got some functions in a helper class(components) named Setup.

Is it possible to make a call to them from ajax since all calls must pass via controller.


type     :'POST',

cache    : false,

url  : 'controller/action',        //maybe Setup::getFullname()....

success  : function(response) {



No, you must pass through a Controller and so you can create a SetupController that refers to Setup component.