Created
August 6, 2014 11:26
-
-
Save kristjanmik/2f851ea83ba48901ff87 to your computer and use it in GitHub Desktop.
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
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