Skip to content

Instantly share code, notes, and snippets.

@distracteddev
Created April 15, 2012 04:18
Show Gist options
  • Save distracteddev/2389986 to your computer and use it in GitHub Desktop.
Save distracteddev/2389986 to your computer and use it in GitHub Desktop.
A Node.js/Director route function
exports.getTags = function () {
var self = this;
BlogPost.tagFilter(function(err, tags) {
if (err) throw err;
console.log(tags);
self.res.end(JSON.stringify(tags));
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment