How can I catch ajax request to specified module?

Hi!

I have cusom module that need to send ajax requests to Suite to do something code. So the problem that I don`t understand a methodics how catch this request on server side by standart suite methods and route it to my code. Please help me !

Thanks!

@sergeyyy
You can make file ‘controller.php’ in your custom module and write there function which name will be in format:
action_<function name>
After that you should call this function to use ajax in format:
www.yoursite/index.php?module=<your custom module>&action=<function name>…