dev/endpoints/bundle_AAAAA/bundle_AAAAA.routing.yml
2023-12-31 00:04:21 +02:00

40 lines
987 B
YAML

bundle_AAAAA.node:
path: '/api/{lang}/AAAAAs/{alias}'
defaults:
_controller: 'Drupal\bundle_AAAAA\Controller\NodeController::getNode'
methods: [GET]
requirements:
_access: 'TRUE'
options:
no_cache: 'TRUE'
bundle_AAAAA.nodes:
path: '/api/{lang}/AAAAAs'
defaults:
_controller: 'Drupal\bundle_AAAAA\Controller\NodesController::getNodes'
methods: [GET]
requirements:
_access: 'TRUE'
options:
no_cache: 'TRUE'
# bundle_AAAAA.categories:
# path: '/api/{lang}/AAAAAs/categories'
# defaults:
# _controller: 'Drupal\bundle_AAAAA\Controller\CategoryController::getCategories'
# methods: [GET]
# requirements:
# _access: 'TRUE'
# options:
# no_cache: 'TRUE'
# bundle_AAAAA.nodes_category:
# path: '/api/{lang}/AAAAAs/categories/{category}'
# defaults:
# _controller: 'Drupal\bundle_AAAAA\Controller\NodesController::getNodes'
# methods: [GET]
# requirements:
# _access: 'TRUE'
# options:
# no_cache: 'TRUE'