|
|
|
@ -25,16 +25,12 @@ var deviceModule = require("/modules/device.js");
|
|
|
|
|
|
|
|
|
|
if (uri != null) {
|
|
|
|
|
var uriMatcher = new URIMatcher(callPath);
|
|
|
|
|
//log.info(callPath);
|
|
|
|
|
log.info(uriMatcher.match("operation/{type}/{deviceid}/{operation}"));
|
|
|
|
|
if (uriMatcher.match("operation/{type}/{deviceid}/{operation}")) {
|
|
|
|
|
|
|
|
|
|
var deviceId = uriMatcher.elements().deviceid;
|
|
|
|
|
var type = uriMatcher.elements().type;
|
|
|
|
|
var operation = uriMatcher.elements().operation;
|
|
|
|
|
var result = deviceModule.performOperation(deviceId, operation,[],type);
|
|
|
|
|
<!--log.info(result);-->
|
|
|
|
|
<!--print(result);-->
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
%>
|