Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takahashi-h5/ab1eca01ffb0279df3319f388bddfd47 to your computer and use it in GitHub Desktop.
Save takahashi-h5/ab1eca01ffb0279df3319f388bddfd47 to your computer and use it in GitHub Desktop.
<?php
$router = $di->getRouter();
// Define your routes here
$api = new \Phalcon\Mvc\Router\Group([
'controller' => 'v1'
]);
$api->addGet('/edit/{id}', ['action' => 'edit']); // {id}がパスパラメータ
$router->mount($api);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment