Create an options object for glue. The option object inherits the loopback-boot option object. On top of the original option object, add a new attribute called subapps.
The "subapps" attribute is an array representing a loopback project. Each element of the array should have the loopback project name, prefix.
var options = {
"appRootDir" : __dirname,
"subapps" : [
{
"name" : "app-name",
"app" : <object>,
"mountPath" : "api1"
}
]
};
name: project name of the subapp
app: Booted loopback project application instance. If this parameter is not provided than glue will try loading it from node_modules. While loading it will use the loopback project names provided as "name"
mountPath: The URI where the loopback project will be mounted. If this parameter is not provided, glue defaults it to "api" with an index (ie. api1, api2)