Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phurl/application/PhabricatorPhurlApplication.php
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | return array( | ||||
=> 'PhabricatorPhurlURLEditController', | => 'PhabricatorPhurlURLEditController', | ||||
), | ), | ||||
), | ), | ||||
); | ); | ||||
} | } | ||||
public function getShortRoutes() { | public function getShortRoutes() { | ||||
return array( | return array( | ||||
'/status/' => 'PhabricatorStatusController', | |||||
'/favicon.ico' => 'PhabricatorFaviconController', | |||||
'/robots.txt' => 'PhabricatorRobotsShortController', | |||||
'/u/(?P<append>[^/]+)' => 'PhabricatorPhurlShortURLController', | '/u/(?P<append>[^/]+)' => 'PhabricatorPhurlShortURLController', | ||||
'.*' => 'PhabricatorPhurlShortURLDefaultController', | '.*' => 'PhabricatorPhurlShortURLDefaultController', | ||||
); | ); | ||||
} | } | ||||
protected function getCustomCapabilities() { | protected function getCustomCapabilities() { | ||||
return array( | return array( | ||||
PhabricatorPhurlURLCreateCapability::CAPABILITY => array( | PhabricatorPhurlURLCreateCapability::CAPABILITY => array( | ||||
'default' => PhabricatorPolicies::POLICY_USER, | 'default' => PhabricatorPolicies::POLICY_USER, | ||||
), | ), | ||||
); | ); | ||||
} | } | ||||
} | } |