example.bar:
  path: '/foo/example'
  defaults:
    _title: 'Bar'
    _controller: '\Drupal\foo\Controller\FooController::build'
  requirements:
    _permission: 'access content'
