diff --git a/api/app/Config/routes.php b/api/app/Config/routes.php index a2b963f44..7982b284e 100644 --- a/api/app/Config/routes.php +++ b/api/app/Config/routes.php @@ -19,6 +19,13 @@ * @since CakePHP(tm) v 0.2.9 * @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', * its action called 'display', and we pass a param to select the view file