Changeset View
Changeset View
Standalone View
Standalone View
src/applications/herald/application/PhabricatorHeraldApplication.php
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | final class PhabricatorHeraldApplication extends PhabricatorApplication { | ||||
public function getRoutes() { | public function getRoutes() { | ||||
return array( | return array( | ||||
'/H(?P<id>[1-9]\d*)' => 'HeraldRuleViewController', | '/H(?P<id>[1-9]\d*)' => 'HeraldRuleViewController', | ||||
'/herald/' => array( | '/herald/' => array( | ||||
'(?:query/(?P<queryKey>[^/]+)/)?' => 'HeraldRuleListController', | '(?:query/(?P<queryKey>[^/]+)/)?' => 'HeraldRuleListController', | ||||
'new/' => 'HeraldNewController', | 'new/' => 'HeraldNewController', | ||||
'create/' => 'HeraldNewController', | 'create/' => 'HeraldNewController', | ||||
'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>[^/]+)/' | ||||
=> 'HeraldDisableController', | => 'HeraldDisableController', | ||||
'test/' => 'HeraldTestConsoleController', | 'test/' => 'HeraldTestConsoleController', | ||||
'transcript/' => array( | 'transcript/' => array( | ||||
'' => 'HeraldTranscriptListController', | '' => 'HeraldTranscriptListController', | ||||
'(?:query/(?P<queryKey>[^/]+)/)?' => 'HeraldTranscriptListController', | '(?:query/(?P<queryKey>[^/]+)/)?' => 'HeraldTranscriptListController', | ||||
'(?P<id>[1-9]\d*)/' | '(?P<id>[1-9]\d*)/(?:(?P<view>[^/])/)?' | ||||
=> 'HeraldTranscriptController', | => 'HeraldTranscriptController', | ||||
), | ), | ||||
'webhook/' => array( | 'webhook/' => array( | ||||
$this->getQueryRoutePattern() => 'HeraldWebhookListController', | $this->getQueryRoutePattern() => 'HeraldWebhookListController', | ||||
'view/(?P<id>\d+)/(?:request/(?P<requestID>[^/]+)/)?' => | 'view/(?P<id>\d+)/(?:request/(?P<requestID>[^/]+)/)?' => | ||||
'HeraldWebhookViewController', | 'HeraldWebhookViewController', | ||||
$this->getEditRoutePattern('edit/') => 'HeraldWebhookEditController', | $this->getEditRoutePattern('edit/') => 'HeraldWebhookEditController', | ||||
'test/(?P<id>\d+)/' => 'HeraldWebhookTestController', | 'test/(?P<id>\d+)/' => 'HeraldWebhookTestController', | ||||
Show All 20 Lines |