1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- $router = new Phalcon\Mvc\Router(false);
- $router->add('/json', array(
- 'controller' => 'bench',
- 'action' => 'json',
- ));
- $router->add('/db', array(
- 'controller' => 'bench',
- 'action' => 'db',
- ));
- $router->add('/queries', array(
- 'controller' => 'bench',
- 'action' => 'queries',
- ));
- $router->add('/fortunes', array(
- 'controller' => 'bench',
- 'action' => 'fortunes',
- ));
- $router->add('/update', array(
- 'controller' => 'bench',
- 'action' => 'update',
- ));
- $router->add('/plaintext', array(
- 'controller' => 'bench',
- 'action' => 'plaintext',
- ));
- $router->add('/mongodb/db', array(
- 'controller' => 'mongobench',
- 'action' => 'db',
- ));
- $router->add('/mongodb/queries', array(
- 'controller' => 'mongobench',
- 'action' => 'queries',
- ));
- $router->add('/mongodb/fortunes', array(
- 'controller' => 'mongobench',
- 'action' => 'fortunes',
- ));
- return $router;
|