Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phame/application/PhabricatorPhameApplication.php
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | return array( | ||||
'picture/(?P<id>[1-9]\d*)/' => 'PhameBlogProfilePictureController', | 'picture/(?P<id>[1-9]\d*)/' => 'PhameBlogProfilePictureController', | ||||
'header/(?P<id>[1-9]\d*)/' => 'PhameBlogHeaderPictureController', | 'header/(?P<id>[1-9]\d*)/' => 'PhameBlogHeaderPictureController', | ||||
), | ), | ||||
), | ), | ||||
); | ); | ||||
} | } | ||||
public function getBlogRoutes() { | public function getBlogRoutes() { | ||||
return $this->getLiveRoutes(); | return $this->getLiveRoutes() + array( | ||||
'/status/' => 'PhabricatorStatusController', | |||||
'/favicon.ico' => 'PhabricatorFaviconController', | |||||
'/robots.txt' => 'PhabricatorRobotsBlogController', | |||||
); | |||||
} | } | ||||
private function getLiveRoutes() { | private function getLiveRoutes() { | ||||
return array( | return array( | ||||
'/' => array( | '/' => array( | ||||
'' => 'PhameBlogViewController', | '' => 'PhameBlogViewController', | ||||
'post/(?P<id>\d+)/(?:(?P<slug>[^/]+)/)?' => 'PhamePostViewController', | 'post/(?P<id>\d+)/(?:(?P<slug>[^/]+)/)?' => 'PhamePostViewController', | ||||
), | ), | ||||
Show All 27 Lines |