invite.invite_accept_accept:
  path: '/invite/accept/{invite}'
  defaults:
    _controller: '\Drupal\invite\Controller\InviteAccept::accept'
    _title: 'accept'
  requirements:
    _permission: 'access content'
    reg_code: ^[a-zA-Z0-9]+
  options:
    parameters:
      invite:
        type: reg_code

invite.invite:
  path: '/admin/config/people/invite'
  defaults:
    _controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
    _title: 'Invite'
  requirements:
    _permission: 'access administration pages'

invite.invite_config:
  path: '/admin/config/invite/invite_config'
  defaults:
    _form: '\Drupal\invite\Form\InviteConfig'
    _title: 'Invite Config'
  requirements:
    _permission: 'access administration pages'
  options:
    _admin_route: TRUE
    
invite.invite_list:
  path: 'invite/list'
  defaults:
    _controller: '\Drupal\invite\Controller\InviteList::view'
    _title: 'Invite list'
  requirements:
    _permission: 'access administration pages'
  options:
    _admin_route: TRUE

invite.invite_withdraw_form:
  path: 'invite/withdraw/{invite}'
  defaults:
    _form: '\Drupal\invite\Form\InviteWithdrawForm'
    _title: 'Withdraw Invite'
  requirements:
    _custom_access: '\Drupal\invite\Controller\InviteAccessController::withdrawInviteAccess'

invite.invite_resend_form:
  path: 'invite/resend/{invite}'
  defaults:
    _form: '\Drupal\invite\Form\InviteResendForm'
    _title: 'Resend Invite'
  requirements:
    _custom_access: '\Drupal\invite\Controller\InviteAccessController::resendInviteAccess'
