This question already has an answer here:
I have a my_module.routing.yml file and because of I have multi entity in my module its too big and not pretty.
Is there any way to split it for each entity and include them in one file like symfony, I use below code but it's not work in drupal 8.
acme_demo_user: resource: "@acmeDemoBundle/Resources/config/routing/user_routing.yml"
I also use absolute path for yml file but it's not work.