Fixed get tag name and get tag id function names

This commit is contained in:
Patrick McDonagh
2016-01-22 14:29:24 -06:00
parent 8febd96bb7
commit aa624b3b01
2 changed files with 3 additions and 3 deletions

View File

@@ -63,8 +63,8 @@ var angular = function(req, res) {
res.render('angularIndex');
};
app.get('/json/get/id/:tagName', fns.tagID); // Gets the id for a tag name
app.get('/json/get/tagName/:tagID', fns.tagName); // Gets the tagName for an ID
app.get('/json/get/id/:tagName', fns.getTagID); // Gets the id for a tag name
app.get('/json/get/tagName/:tagID', fns.getTagName); // Gets the tagName for an ID
app.get('/json/add/:tagName/:units', fns.addTag); // Adds a tag to the scan list
app.get('/json/remove/:tag', fns.removeTag); // Removes a tag from the scan list
app.get('/json/val/:tag', fns.latestTagValue); // Gets the latest value of a single tag

View File

@@ -47,7 +47,7 @@ var getTagName = function(tagID, cb){
});
};
exports.tagID = function(req, res){
exports.getTagID = function(req, res){
getTagID(req.params.tagName, function(err, id){
if (err){
console.log(err);