Changeset View
Changeset View
Standalone View
Standalone View
src/applications/herald/application/PhabricatorApplicationHerald.php
Show All 34 Lines | return array( | ||||
new HeraldRemarkupRule(), | new HeraldRemarkupRule(), | ||||
); | ); | ||||
} | } | ||||
public function getRoutes() { | public function getRoutes() { | ||||
return array( | return array( | ||||
'/herald/' => array( | '/herald/' => array( | ||||
'(?:query/(?P<queryKey>[^/]+)/)?' => 'HeraldRuleListController', | '(?:query/(?P<queryKey>[^/]+)/)?' => 'HeraldRuleListController', | ||||
'new/(?:(?P<type>[^/]+)/(?:(?P<rule_type>[^/]+)/)?)?' | 'new/' => 'HeraldNewController', | ||||
=> 'HeraldNewController', | |||||
'rule/(?P<id>[1-9]\d*)/' => 'HeraldRuleViewController', | 'rule/(?P<id>[1-9]\d*)/' => 'HeraldRuleViewController', | ||||
'edit/(?:(?P<id>[1-9]\d*)/)?' => 'HeraldRuleController', | 'edit/(?:(?P<id>[1-9]\d*)/)?' => 'HeraldRuleController', | ||||
'disable/(?P<id>[1-9]\d*)/(?P<action>\w+)/' => | 'disable/(?P<id>[1-9]\d*)/(?P<action>\w+)/' => | ||||
'HeraldDisableController', | 'HeraldDisableController', | ||||
'history/(?:(?P<id>[1-9]\d*)/)?' => 'HeraldRuleEditHistoryController', | 'history/(?:(?P<id>[1-9]\d*)/)?' => 'HeraldRuleEditHistoryController', | ||||
'test/' => 'HeraldTestConsoleController', | 'test/' => 'HeraldTestConsoleController', | ||||
'transcript/' => 'HeraldTranscriptListController', | 'transcript/' => 'HeraldTranscriptListController', | ||||
'transcript/(?P<id>[1-9]\d*)/(?:(?P<filter>\w+)/)?' | 'transcript/(?P<id>[1-9]\d*)/(?:(?P<filter>\w+)/)?' | ||||
Show All 16 Lines |