-
Notifications
You must be signed in to change notification settings - Fork 13
/
tripal_blast.routing.yml
92 lines (76 loc) · 2.72 KB
/
tripal_blast.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
# @file
# Tripal BLAST routes definition.
# This route is for single all-in-one BLAST user interface.
# Choices of query type, protein or nucleotide, outlined in this page.
tripal_blast.blast_ui:
path: 'blast'
defaults:
_title: 'Tripal BLAST'
_controller: '\Drupal\tripal_blast\Controller\TripalBlastUIController::ui'
requirements:
_permission: 'access content'
# Routes below are for two main query types BLAST shown in the UI.
# blast{query type}/{db type}
tripal_blast.blast_program:
path: 'blast/{query}/{db}'
defaults:
_title: 'Tripal BLAST'
_form: '\Drupal\tripal_blast\Form\TripalBlastForm'
requirements:
_permission: 'access content'
query: 'nucleotide|protein'
db: 'nucleotide|protein'
# Route to view BLAST result
tripal_blast.blast_report:
path: 'blast/report/{job_id}'
defaults:
_title: 'BLAST Results'
_controller: '\Drupal\tripal_blast\Controller\TripalBlastReportController::report'
requirements:
_permission: 'access content'
# Routes below are for configuration and help.
# Uses tabs @see tripal_blast.link.task.yml.
tripal_blast.configuration:
path: '/admin/tripal/extension/tripal_blast/configuration'
defaults:
_title: 'Tripal Blast: Configuration'
_form: '\Drupal\tripal_blast\Form\TripalBlastConfigurationForm'
requirements:
_permission: 'administer tripal'
tripal_blast.help:
path: '/admin/tripal/extension/tripal_blast/configuration/help'
defaults:
_title: 'Tripal Blast: Help'
_controller: '\Drupal\tripal_blast\Controller\TripalBlastHelpController::help'
requirements:
_permission: 'administer tripal'
# Route set below defines routes for the management of
# configuration entity (list, add, edit and delete).
entity.tripal_blast.blast_database:
path: '/admin/tripal/extension/tripal_blast'
defaults:
_entity_list: 'tripalblastdatabase'
_title: 'Tripal BLAST UI'
requirements:
_permission: 'administer tripal,_access_admin_menu_block_page'
entity.tripal_blast.blast_database.add:
path: '/admin/tripal/extension/tripal_blast/add'
defaults:
_entity_form: 'tripalblastdatabase.add'
_title: 'Tripal BLAST Add Query Database'
requirements:
_permission: 'administer tripal'
entity.tripalblastdatabase.edit_form:
path: '/admin/tripal/extension/tripal_blast/edit/{tripalblastdatabase}'
defaults:
_entity_form: 'tripalblastdatabase.edit'
_title: 'Tripal BLAST Edit Query Database'
requirements:
_permission: 'administer tripal'
entity.tripalblastdatabase.delete_form:
path: '/admin/tripal/extension/tripal_blast/delete/{tripalblastdatabase}'
defaults:
_entity_form: 'tripalblastdatabase.delete'
_title: 'Tripal BLAST Delete Query Database'
requirements:
_permission: 'administer tripal'