123456789101112131415161718192021 |
- <?php
- $router = new Phalcon\Mvc\Router(false);
- $router->add('/json', array(
- 'controller' => 'bench',
- 'action' => 'json',
- ));
- // Handles "/db" as well as "/db?queries={queries}"
- $router->add('/db', array(
- 'controller' => 'bench',
- 'action' => 'db',
- ));
- $router->add('/fortunes', array(
- 'controller' => 'bench',
- 'action' => 'fortunes',
- ));
- return $router;
|