Middleware function support
Merge pull request #13 from johnywith1n/master

Updates to make basePath work with current swaggerui
Merge pull request #12 from sposmen/master

Middleware function support
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);
        }),
        ...
    }));
Merge pull request #15 from relvao/master

Update index.js
Expose descriptor & resources
Merge pull request #16 from gierschv/feat-expose

Expose descriptor & resources
Fix JSHint warning
Pass info object

Use `if` as Swagger UI will add extra padding if passed an empty object
Merge pull request #17 from tlvince/feature/info

Pass info object
Merge pull request #18 from tlvince/refactor/jshint

Fix JSHint warning