routes.php 473 B

1234567891011121314151617181920212223242526
  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. $router->add('/update', array(
  17. 'controller' => 'bench',
  18. 'action' => 'update',
  19. ));
  20. return $router;