| Total Complexity | 2 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class HTTPMethodTestController extends Controller implements TestOnly |
||
| 10 | { |
||
| 11 | private static $url_segment = 'HTTPMethodTestController'; |
||
|
|
|||
| 12 | |||
| 13 | private static $url_handlers = [ |
||
| 14 | 'GET /' => 'getRoot', |
||
| 15 | 'POST ' => 'postLegacyRoot', |
||
| 16 | ]; |
||
| 17 | |||
| 18 | private static $allowed_actions = [ |
||
| 19 | 'getRoot', |
||
| 20 | 'postLegacyRoot', |
||
| 21 | ]; |
||
| 22 | |||
| 23 | public function getRoot(HTTPRequest $request) |
||
| 26 | } |
||
| 27 | |||
| 28 | public function postLegacyRoot(HTTPRequest $request) |
||
| 33 |