Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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