From 41313329640423dd51521519cda68331e32987cc Mon Sep 17 00:00:00 2001 From: Andrew Stewart Date: Fri, 15 Nov 2013 12:53:52 -0800 Subject: [PATCH] Fix variable naming error --- dist/api.js | 2 +- src/api.litcoffee | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/api.js b/dist/api.js index 0cfa573..86befa3 100644 --- a/dist/api.js +++ b/dist/api.js @@ -75,7 +75,7 @@ }); this.server.all("/robots/:robot/devices/:device/commands/:commandname", function(req, res) { var commandname, devicename, key, params, robotname, value, _ref; - params = [req.params.robotname, req.params.devicename, req.params.commandname]; + params = [req.params.robot, req.params.device, req.params.commandname]; robotname = params[0], devicename = params[1], commandname = params[2]; params = []; if (typeof req.body === 'object') { diff --git a/src/api.litcoffee b/src/api.litcoffee index c8109e6..744f2c8 100644 --- a/src/api.litcoffee +++ b/src/api.litcoffee @@ -166,8 +166,8 @@ and returns the result. @server.all "/robots/:robot/devices/:device/commands/:commandname", (req, res) -> params = [ - req.params.robotname, - req.params.devicename, + req.params.robot, + req.params.device, req.params.commandname ]