Skip to content

Instantly share code, notes, and snippets.

@kristjanmik
Created August 6, 2014 11:26
Show Gist options
  • Save kristjanmik/2f851ea83ba48901ff87 to your computer and use it in GitHub Desktop.
Save kristjanmik/2f851ea83ba48901ff87 to your computer and use it in GitHub Desktop.
var parser = require('apis-parser');
module.exports = function(app,prefix){
console.log('Within function',prefix)
var flights = require('flights');
app.get(prefix + '/:type/kef',function(req,res){
parser(res)(function(cb){
flights.kef({
type: req.params.type,
language: req.query.language
}, cb);
})
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment