Created
March 20, 2020 01:45
-
-
Save takahashi-h5/0caf20df87a5f5e469b5151ca5357750 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$router = $di->getRouter(); | |
// V1Controllerでグルーピング | |
$api = new \Phalcon\Mvc\Router\Group([ | |
'controller' => 'v1' | |
]); | |
$api->addGet('', ['action' => 'index']); // GETメソッドのみ、indexActionメソッド実行 | |
$router->mount($api); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment