social_group.page_redirect:
  path: '/group/{group}'
  defaults:
    _controller: '\Drupal\social_group\Controller\SocialGroupController::otherGroupPage'
    _title: 'Group'
  requirements:
    _user_is_logged_in: 'TRUE'

social_group.settings:
  path: '/admin/config/opensocial/social-group'
  defaults:
    _form: 'Drupal\social_group\Form\SocialGroupSettings'
    _title: 'Group settings'
  requirements:
    _permission: 'set social group settings'

social_group.stream:
  path: '/group/{group}/stream'
  defaults:
    _content: '\Drupal\social_group\Controller\SocialGroupController::groupStream'
    _title_callback: '\Drupal\social_group\Controller\SocialGroupController::groupStreamTitle'
    _entity_view: 'group.stream'
  requirements:
    _group_permission: 'view group stream page'

social_group.my_groups:
  path: '/my-groups'
  defaults:
    _controller: '\Drupal\social_group\Controller\SocialGroupController:redirectMyGroups'
  requirements:
    _user_is_logged_in: 'TRUE'
