|
@@ -7,12 +7,16 @@ $router->add('/json', array(
|
|
'action' => 'json',
|
|
'action' => 'json',
|
|
));
|
|
));
|
|
|
|
|
|
-// Handles "/db" as well as "/db?queries={queries}"
|
|
|
|
$router->add('/db', array(
|
|
$router->add('/db', array(
|
|
'controller' => 'bench',
|
|
'controller' => 'bench',
|
|
'action' => 'db',
|
|
'action' => 'db',
|
|
));
|
|
));
|
|
|
|
|
|
|
|
+$router->add('/queries', array(
|
|
|
|
+ 'controller' => 'bench',
|
|
|
|
+ 'action' => 'queries',
|
|
|
|
+));
|
|
|
|
+
|
|
$router->add('/fortunes', array(
|
|
$router->add('/fortunes', array(
|
|
'controller' => 'bench',
|
|
'controller' => 'bench',
|
|
'action' => 'fortunes',
|
|
'action' => 'fortunes',
|
|
@@ -28,12 +32,16 @@ $router->add('/plaintext', array(
|
|
'action' => 'plaintext',
|
|
'action' => 'plaintext',
|
|
));
|
|
));
|
|
|
|
|
|
-// Handles "/db" as well as "/db?queries={queries}"
|
|
|
|
$router->add('/mongodb/db', array(
|
|
$router->add('/mongodb/db', array(
|
|
'controller' => 'mongobench',
|
|
'controller' => 'mongobench',
|
|
'action' => 'db',
|
|
'action' => 'db',
|
|
));
|
|
));
|
|
|
|
|
|
|
|
+$router->add('/mongodb/queries', array(
|
|
|
|
+ 'controller' => 'mongobench',
|
|
|
|
+ 'action' => 'queries',
|
|
|
|
+));
|
|
|
|
+
|
|
$router->add('/mongodb/fortunes', array(
|
|
$router->add('/mongodb/fortunes', array(
|
|
'controller' => 'mongobench',
|
|
'controller' => 'mongobench',
|
|
'action' => 'fortunes',
|
|
'action' => 'fortunes',
|