fliptoo/swagger-express — pull request #15 by relvao (2014-04-16 15:49:10+00:00)
Title: Update index.js

Fixes the case when you pass a bunch of controller files but only some of them contain jsdoc annotations.
eg:

app.use(swagger.init(app, {
apiVersion: '1.0',
...,
apis: fs.readdirSync('./controllers').map(function (filename) {
return path.join(controllersPath, filename);
}),
...
}));