Created
March 20, 2020 03:19
-
-
Save takahashi-h5/0d74b74c613941c6566ea9e4e221f226 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(); | |
// Define your routes here | |
$api = new \Phalcon\Mvc\Router\Group([ | |
'controller' => 'v1' | |
]); | |
$api->addGet('/edit/{id}/{code}?lang={val}', ['action' => 'edit']); | |
$router->mount($api); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment