Added routes for monitors xml / json

pull/403/head
Kyle Johnson 2014-04-23 03:43:59 +00:00
parent 53c8f05812
commit 8e88fbe87c
1 changed files with 7 additions and 0 deletions

View File

@ -19,6 +19,13 @@
* @since CakePHP(tm) v 0.2.9 * @since CakePHP(tm) v 0.2.9
* @license http://www.opensource.org/licenses/mit-license.php MIT License * @license http://www.opensource.org/licenses/mit-license.php MIT License
*/ */
/**
* Load the API / REST routes
*/
Router::mapResources('monitors');
Router::parseExtensions();
/** /**
* Here, we are connecting '/' (base path) to controller called 'Pages', * Here, we are connecting '/' (base path) to controller called 'Pages',
* its action called 'display', and we pass a param to select the view file * its action called 'display', and we pass a param to select the view file