Let's imagine we don't want to have any restrictions for our route. For this we can set _access requirement to TRUE.
your_module.route_name:
path: '/your_path'
defaults:
_controller: 'Drupal\your_module\Controller\YourController::yourMethod'
requirements:
_access: 'TRUE'