Routing file for to call module.module file function in drupal 8?

I need to call particular funtion in module.module file,to check the function is working or not in manually. Is there any way to call the function using routing file or is there any other way.

Thanks.

Mani

Drupal version: 


Source: https://www.drupal.org/taxonomy/term/4/feed