Added event emission for swaggerResources to support customization

This commit is contained in:
Shelby Sanders 2015-02-07 14:40:15 -08:00
parent 3bd1e4440d
commit 3ca1f45a77
1 changed files with 2 additions and 0 deletions

View File

@ -77,6 +77,8 @@ function Swagger(loopbackApplication, swaggerApp, opts) {
* information about them.
*/
addRoute(swaggerApp, opts.resourcePath, resourceDoc, opts);
loopbackApplication.emit('swaggerResources', resourceDoc);
}
/**