routes.php 381 B

123456789101112131415161718192021
  1. <?php
  2. $router = new Phalcon\Mvc\Router(false);
  3. $router->add('/json', array(
  4. 'controller' => 'bench',
  5. 'action' => 'json',
  6. ));
  7. // Handles "/db" as well as "/db?queries={queries}"
  8. $router->add('/db', array(
  9. 'controller' => 'bench',
  10. 'action' => 'db',
  11. ));
  12. $router->add('/fortunes', array(
  13. 'controller' => 'bench',
  14. 'action' => 'fortunes',
  15. ));
  16. return $router;