Fix variable naming error

This commit is contained in:
Andrew Stewart 2013-11-15 12:53:52 -08:00
parent c28e99efee
commit 4131332964
2 changed files with 3 additions and 3 deletions

2
dist/api.js vendored
View File

@ -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') {

View File

@ -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
]