This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Simple call to drupal | |
exports.install = function() { | |
F.route('/article/{{rewrite}}', json_article); // e.g. Article | |
} | |
function json_article(rewrite) { | |
var self = this; | |
// yourDrupalRewrite = your rewrite name for e.g. articles | |
Utils.request('http://domain.ltd', [], {yourDrupalRewrite: rewrite}, function(err, data) { |