routes.php 921 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. $router = new Phalcon\Mvc\Router(false);
  3. $router->add('/json', array(
  4. 'controller' => 'bench',
  5. 'action' => 'json',
  6. ));
  7. $router->add('/db', array(
  8. 'controller' => 'bench',
  9. 'action' => 'db',
  10. ));
  11. $router->add('/queries', array(
  12. 'controller' => 'bench',
  13. 'action' => 'queries',
  14. ));
  15. $router->add('/fortunes', array(
  16. 'controller' => 'bench',
  17. 'action' => 'fortunes',
  18. ));
  19. $router->add('/update', array(
  20. 'controller' => 'bench',
  21. 'action' => 'update',
  22. ));
  23. $router->add('/plaintext', array(
  24. 'controller' => 'bench',
  25. 'action' => 'plaintext',
  26. ));
  27. $router->add('/mongodb/db', array(
  28. 'controller' => 'mongobench',
  29. 'action' => 'db',
  30. ));
  31. $router->add('/mongodb/queries', array(
  32. 'controller' => 'mongobench',
  33. 'action' => 'queries',
  34. ));
  35. $router->add('/mongodb/fortunes', array(
  36. 'controller' => 'mongobench',
  37. 'action' => 'fortunes',
  38. ));
  39. return $router;