editoria11y.settings:
  path: '/admin/config/content/editoria11y'
  defaults:
    _form: '\Drupal\editoria11y\Form\Editoria11ySettings'
    _title: 'Editoria11y Settings'
  requirements:
    _permission: 'administer editoria11y checker'

editoria11y.reports_dashboard:
  path: '/admin/reports/editoria11y'
  defaults:
    _controller: '\Drupal\editoria11y\Controller\DashboardController::dashboard'
    _title: 'Content Accessibility Issues'
  requirements:
    _permission: 'manage editoria11y results'

editoria11y.exports_summary:
 path: '/admin/reports/editoria11y/export/summary'
 defaults:
   _controller: '\Drupal\editoria11y\Controller\ExportCSVController::pages'
 requirements:
   _permission: 'manage editoria11y results'

editoria11y.exports_issues:
 path: '/admin/reports/editoria11y/export/issues'
 defaults:
   _controller: '\Drupal\editoria11y\Controller\ExportCSVController::issues'
 requirements:
   _permission: 'manage editoria11y results'

editoria11y.exports_dismissals:
 path: '/admin/reports/editoria11y/export/dismissals'
 defaults:
   _controller: '\Drupal\editoria11y\Controller\ExportCSVController::dismissals'
 requirements:
   _permission: 'manage editoria11y results'

editoria11y.api_report:
  path: '/editoria11y/api/results/report'
  defaults:
    _controller: '\Drupal\editoria11y\Controller\ApiController::report'
  methods: [POST]
  requirements:
    _permission: 'view editoria11y checker'
    _user_is_logged_in: 'TRUE'
    _content_type_format: 'json'
    _csrf_request_header_token: 'TRUE'
  options:
    no_cache: true

editoria11y.api_ok:
  path: '/editoria11y/api/dismiss/ok'
  defaults:
    _controller: '\Drupal\editoria11y\Controller\ApiController::ok'
  methods: [POST]
  requirements:
    _permission: 'mark as ok in editoria11y'
    _user_is_logged_in: 'TRUE'
    _content_type_format: 'json'
    _csrf_request_header_token: 'TRUE'
  options:
    no_cache: true

editoria11y.api_hide:
  path: '/editoria11y/api/dismiss/hide'
  methods: [POST]
  defaults:
    _controller: '\Drupal\editoria11y\Controller\ApiController::hide'
  requirements:
    _permission: 'mark as hidden in editoria11y'
    _user_is_logged_in: 'TRUE'
    _content_type_format: 'json'
    _csrf_request_header_token: 'TRUE'
  options:
    no_cache: true

editoria11y.api_purge_page:
  path: '/editoria11y/api/purge/page'
  methods: [POST]
  defaults:
    _controller: '\Drupal\editoria11y\Controller\ApiController::purgePage'
  requirements:
    _permission: 'manage editoria11y results'
    _user_is_logged_in: 'TRUE'
    _content_type_format: 'json'
    _csrf_request_header_token: 'TRUE'
  options:
    no_cache: true

editoria11y.api_purge_dismissals:
  path: '/editoria11y/api/purge/dismissal'
  methods: [POST]
  defaults:
    _controller: '\Drupal\editoria11y\Controller\ApiController::purgeDismissals'
  requirements:
    _permission: 'manage editoria11y results'
    _user_is_logged_in: 'TRUE'
    _content_type_format: 'json'
    _csrf_request_header_token: 'TRUE'
  options:
    no_cache: true

editoria11y.api_reset:
  path: '/editoria11y/api/dismiss/reset'
  methods: [POST]
  defaults:
    _controller: '\Drupal\editoria11y\Controller\ApiController::reset'
  requirements:
    _permission: 'view editoria11y checker'
    _user_is_logged_in: 'TRUE'
    _content_type_format: 'json'
    _csrf_request_header_token: 'TRUE'
  options:
    no_cache: true
