Routing? add a option / value

I would like to solve the following.
I have created another class under singletons.
“Utils”, as it is already present in the collections.
If I use the existing routing function, I can already call methods that are called dynamically by the CMS somehow from the routing. e.g. like this:

Frontend:
{my_url} /singletons/utils/method_name_of_class

Now I would like to
{my_url} /singletons/utils/method_name_of_class/singleton_name

or so to select only one singleton.
what possibility do i have to get the parameters in the existing cms in the class, so that i have “singleton_name” as value in a variable?

Translated with DeepL Translate: The world's most accurate translator (free version)