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.

$.ajax({

type     :'POST',


cache    : false,


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


success  : function(response) {


    $('#close').html(response);


}

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