module.exports = function(app, package) { [ '', 'webrtc' ].forEach(function(p) { app.get('/'+p, function(req, res) { res.render(p?p:'index', { package: package }) }) }) }