social_ajax_comments.cancel:
  path: '/ajax_comments/{cid}/cancel'
  defaults:
    _controller: '\Drupal\social_ajax_comments\Controller\AjaxCommentsController::socialCancel'
  requirements:
    _access: 'TRUE'
    cid: ^[0-9]+

social_ajax_comments.add:
  path: '/ajax_comments/add/{entity_type}/{entity}/{field_name}/{pid}'
  defaults:
    _controller: '\Drupal\social_ajax_comments\Controller\AjaxCommentsController::socialAdd'
    pid: ~
  requirements:
    _access: 'TRUE'
  options:
    parameters:
      entity:
        type: entity:{entity_type}
