Added event emission for swaggerResources to support customization
This commit is contained in:
parent
3bd1e4440d
commit
3ca1f45a77
|
@ -77,6 +77,8 @@ function Swagger(loopbackApplication, swaggerApp, opts) {
|
|||
* information about them.
|
||||
*/
|
||||
addRoute(swaggerApp, opts.resourcePath, resourceDoc, opts);
|
||||
|
||||
loopbackApplication.emit('swaggerResources', resourceDoc);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue