Added support for public in order to hide operations from Swagger
This commit is contained in:
parent
fd30b2d151
commit
4a40f18251
|
@ -66,7 +66,9 @@ function Swagger(loopbackApplication, swaggerApp, opts) {
|
||||||
return item.name === className;
|
return item.name === className;
|
||||||
})[0];
|
})[0];
|
||||||
|
|
||||||
routeHelper.addRouteToAPIDeclaration(route, classDef, doc);
|
if (route.public) {
|
||||||
|
routeHelper.addRouteToAPIDeclaration(route, classDef, doc);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue