-
Notifications
You must be signed in to change notification settings - Fork 5
/
strawberryfield.routing.yml
120 lines (111 loc) · 3.8 KB
/
strawberryfield.routing.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
system.admin_config_strawberryfield:
path: '/admin/config/archipelago'
defaults:
_controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
_title: 'Archipelago'
requirements:
_permission: 'access administration pages'
options:
_admin_route: TRUE
strawberryfield.important_solr_settings_form:
path: '/admin/config/archipelago/important-solr-settings'
defaults:
_form: '\Drupal\strawberryfield\Form\ImportantSolrSettingsForm'
_title: 'Important Solr Settings'
requirements:
_permission: 'access administration pages'
options:
_admin_route: TRUE
strawberryfield.file_persister_settings_form:
path: '/admin/config/archipelago/filepersisting'
defaults:
_form: '\Drupal\strawberryfield\Form\FilePersisterServiceSettingsForm'
_title: 'File Persister Service Settings'
requirements:
_permission: 'access administration pages'
options:
_admin_route: TRUE
strawberryfield.hydroponics_settings_form:
path: '/admin/config/archipelago/hydroponics'
defaults:
_form: '\Drupal\strawberryfield\Form\HydroponicsSettingsForm'
_title: 'Background Queue Processing Manager'
requirements:
_permission: 'access administration pages'
options:
_admin_route: TRUE
strawberryfield.breadcrumb_settings_form:
path: '/admin/config/archipelago/breadcrumbs'
defaults:
_form: '\Drupal\strawberryfield\Form\BreadcrumbSettingsForm'
_title: 'ADO Breadcrumb settings'
requirements:
_permission: 'access administration pages'
options:
_admin_route: TRUE
strawberryfield.multiple_patch_confirm:
path: '/admin/config/archipelago/actions/jsonpatch'
defaults:
_form: '\Drupal\strawberryfield\Form\JsonPatchMultiple'
requirements:
_permission: 'JSON Patch Strawberryfield'
# The access check below has a soft dependency on Form Mode Manager module
# We get a list of all form modes, then check if user has permissions "use <formmode> form mode"
# These permissions are generated by Form Mode Manager
# See \Drupal\strawberryfield\Controller\CustomNodeEditController::getActiveFormModes
strawberryfield.custom_node_edit:
path: '/node/{node}/edit-node'
defaults:
_controller: '\Drupal\strawberryfield\Controller\CustomNodeEditController::redirectToForm'
requirements:
_custom_access: '\Drupal\strawberryfield\Controller\CustomNodeEditController::access'
options:
parameters:
node:
type: entity:node
# Search Highlight Endpoint for a given Node file uuid and processor.
strawberryfield.flavor_datasource_search:
path: '/do/{node}/flavorsearch/{fileuuid}/{processor}/{format}/{page}'
methods: [GET]
defaults:
_controller: '\Drupal\strawberryfield\Controller\StrawberryfieldFlavorDatasourceSearchController::search'
format: 'json'
page: 'all'
options:
no_cache: TRUE
parameters:
node:
type: 'entity:node'
resource_type:
type: 'ado'
fileuuid: 'all'
processor: 'ocr'
format: 'json'
page: 'all'
requirements:
_entity_access: 'node.view'
# Count of Solr docs given Node and a processor.
strawberryfield.flavor_datasource_count:
path: '/do/{node}/flavorcount/{processor}'
methods: [GET]
defaults:
_controller: '\Drupal\strawberryfield\Controller\StrawberryfieldFlavorDatasourceSearchController::count'
options:
no_cache: TRUE
parameters:
node:
type: 'entity:node'
resource_type:
type: 'ado'
requirements:
processor: .+
_entity_access: 'node.view'
strawberryfield.strawberryfield_keynameprovider_overview_form:
path: '/admin/structure/strawberry_keynameprovider/overview'
defaults:
_form: '\Drupal\strawberryfield\Form\keyNameProviderOverviewForm'
_title: 'Key Name Provider Overview'
requirements:
_permission: 'access administration pages'
options:
_admin_route: TRUE