How to call function in routes.php from another php file(My own file) ?)

Hi team,
I wanna call function in routes.php file from my own php file in Slim Framework.
I searched a lot of source . But I couldn’t find anything interesting.
Please let me know if any resource available about this topic.
Any suggestion are welcome.

Thanks.

Can you provide any example code of your approach?