Differential D7751 Diff 17565 src/applications/phragment/application/PhabricatorApplicationPhragment.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phragment/application/PhabricatorApplicationPhragment.php
Show All 31 Lines | final class PhabricatorApplicationPhragment extends PhabricatorApplication { | ||||
public function getRoutes() { | public function getRoutes() { | ||||
return array( | return array( | ||||
'/phragment/' => array( | '/phragment/' => array( | ||||
'' => 'PhragmentBrowseController', | '' => 'PhragmentBrowseController', | ||||
'browse/(?P<dblob>.*)' => 'PhragmentBrowseController', | 'browse/(?P<dblob>.*)' => 'PhragmentBrowseController', | ||||
'create/(?P<dblob>.*)' => 'PhragmentCreateController', | 'create/(?P<dblob>.*)' => 'PhragmentCreateController', | ||||
'update/(?P<dblob>.*)' => 'PhragmentUpdateController', | 'update/(?P<dblob>.*)' => 'PhragmentUpdateController', | ||||
'policy/(?P<dblob>.*)' => 'PhragmentPolicyController', | |||||
'history/(?P<dblob>.*)' => 'PhragmentHistoryController', | 'history/(?P<dblob>.*)' => 'PhragmentHistoryController', | ||||
'zip/(?P<dblob>.*)' => 'PhragmentZIPController', | 'zip/(?P<dblob>.*)' => 'PhragmentZIPController', | ||||
'zip@(?P<snapshot>[^/]+)/(?P<dblob>.*)' => 'PhragmentZIPController', | 'zip@(?P<snapshot>[^/]+)/(?P<dblob>.*)' => 'PhragmentZIPController', | ||||
'version/(?P<id>[0-9]*)/' => 'PhragmentVersionController', | 'version/(?P<id>[0-9]*)/' => 'PhragmentVersionController', | ||||
'patch/(?P<aid>[0-9x]*)/(?P<bid>[0-9]*)/' => 'PhragmentPatchController', | 'patch/(?P<aid>[0-9x]*)/(?P<bid>[0-9]*)/' => 'PhragmentPatchController', | ||||
'revert/(?P<id>[0-9]*)/(?P<dblob>.*)' => 'PhragmentRevertController', | 'revert/(?P<id>[0-9]*)/(?P<dblob>.*)' => 'PhragmentRevertController', | ||||
'snapshot/' => array( | 'snapshot/' => array( | ||||
'create/(?P<dblob>.*)' => 'PhragmentSnapshotCreateController', | 'create/(?P<dblob>.*)' => 'PhragmentSnapshotCreateController', | ||||
'view/(?P<id>[0-9]*)/' => 'PhragmentSnapshotViewController', | 'view/(?P<id>[0-9]*)/' => 'PhragmentSnapshotViewController', | ||||
'delete/(?P<id>[0-9]*)/' => 'PhragmentSnapshotDeleteController', | 'delete/(?P<id>[0-9]*)/' => 'PhragmentSnapshotDeleteController', | ||||
'promote/' => array( | 'promote/' => array( | ||||
'latest/(?P<dblob>.*)' => 'PhragmentSnapshotPromoteController', | 'latest/(?P<dblob>.*)' => 'PhragmentSnapshotPromoteController', | ||||
'(?P<id>[0-9]*)/' => 'PhragmentSnapshotPromoteController', | '(?P<id>[0-9]*)/' => 'PhragmentSnapshotPromoteController', | ||||
), | ), | ||||
), | ), | ||||
), | ), | ||||
); | ); | ||||
} | } | ||||
protected function getCustomCapabilities() { | |||||
return array( | |||||
PhragmentCapabilityCanCreate::CAPABILITY => array( | |||||
), | |||||
); | |||||
} | |||||
} | } | ||||