Merge pull request #4782 from strapi/fix-2533

Fix documentation generation when route has no config
This commit is contained in:
Alexandre BODIN 2019-12-20 15:00:25 +01:00 committed by GitHub
commit d6e73a6d6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -471,7 +471,7 @@ module.exports = {
current.handler,
key,
endPoint.split('/')[1],
current.config.description
_.get(current, 'config.description')
),
responses: this.generateResponses(verb, current, key),
summary: '',