materio-d9/web/modules/custom/materio_sapi/materio_sapi.routing.yml

39 lines
1.1 KiB
YAML
Raw Normal View History

2019-05-29 13:41:34 +02:00
materio_sapi.search_autocomplete:
path: '/materio_sapi/form/autocomplete'
defaults:
_controller: '\Drupal\materio_sapi\Controller\FormAutocomplete::Autocomplete'
_format: json
requirements:
_permission: 'access materio search'
materio_sapi.search_form:
path: '/materio_sapi/search_form'
defaults:
_controller: '\Drupal\materio_sapi\Controller\AjaxSearchForm::getForm'
_format: json
requirements:
_permission: 'access materio search'
# materio_sapi.materio_sapi_search_form:
# path: '/materio_sapi/form/materio_sapi_search'
# defaults:
# _form: '\Drupal\materio_sapi\Form\MaterioSapiSearchForm'
# _title: 'MaterioSapiSearchForm'
# requirements:
# _access: 'TRUE'
2019-06-01 16:15:08 +02:00
materio_sapi.getresults:
path: '/materio_sapi/getresults'
defaults:
_controller: '\Drupal\materio_sapi\Controller\Base::getResults'
_format: json
requirements:
_permission: 'access materio search'
materio_sapi.base:
path: '/base'
defaults:
_controller: '\Drupal\materio_sapi\Controller\Base::pageHandler'
requirements:
_permission: 'access materio search'