Added support for public in order to hide operations from Swagger

This commit is contained in:
Shelby Sanders 2014-11-07 20:47:20 -08:00
parent fd30b2d151
commit 4a40f18251
1 changed files with 3 additions and 1 deletions

View File

@ -66,7 +66,9 @@ function Swagger(loopbackApplication, swaggerApp, opts) {
return item.name === className;
})[0];
routeHelper.addRouteToAPIDeclaration(route, classDef, doc);
if (route.public) {
routeHelper.addRouteToAPIDeclaration(route, classDef, doc);
}
});
/**