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 ]