Supprime la route jsonrpc

This commit is contained in:
Michael RICOIS 2016-08-30 10:00:19 +02:00
parent f78d26b924
commit a29b84d0d9

View File

@ -93,8 +93,7 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
//Lire les services disponibles et créer les routes
$services = require_once APPLICATION_PATH . '/../library/WsScore/ServicesConfig.php';
foreach( $services as $section => $params )
{
foreach( $services as $section => $params ) {
if ($params['actif']) {
$route = new Zend_Controller_Router_Route($section.'/:version', array(
'controller' => 'service',
@ -103,14 +102,6 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
'version' => '',
));
$router->addRoute($section, $route);
$route = new Zend_Controller_Router_Route('jsonrpc/'.$section.'/:version', array(
'controller' => 'jsonrpc',
'action' => 'index',
'service' => $section,
'version' => '',
));
$router->addRoute('jsonrpc-'.$section, $route);
}
}