mirror of https://gitee.com/bigwinds/arangodb
Merge branch 'devel' of ssh://github.com/triAGENS/ArangoDB into devel
This commit is contained in:
commit
9e3ccdc2e0
|
@ -780,6 +780,7 @@ function routingAalApp (app, mount, options) {
|
|||
appContextTempl.isProduction = ! devel;
|
||||
|
||||
appContextTempl.manifest = app._manifest;
|
||||
extendContext(appContextTempl, app, root);
|
||||
|
||||
var appContext;
|
||||
var file;
|
||||
|
@ -794,9 +795,8 @@ function routingAalApp (app, mount, options) {
|
|||
var result = {};
|
||||
var context = { exports: result };
|
||||
|
||||
appContext = Object.create(appContextTempl);
|
||||
appContext = _.extend({}, appContextTempl);
|
||||
appContext.prefix = "/";
|
||||
extendContext(appContext, app, root);
|
||||
|
||||
app.loadAppScript(appContext, file, { context: context });
|
||||
|
||||
|
@ -813,11 +813,10 @@ function routingAalApp (app, mount, options) {
|
|||
file = controllers[i];
|
||||
|
||||
// set up a context for the application start function
|
||||
appContext = Object.create(appContextTempl);
|
||||
appContext = _.extend({}, appContextTempl);
|
||||
appContext.prefix = arangodb.normalizeURL("/" + i); // app mount
|
||||
appContext.routingInfo = {};
|
||||
appContext.foxxes = [];
|
||||
extendContext(appContext, app, root);
|
||||
|
||||
app.loadAppScript(appContext, file, { transform: transformScript(file) });
|
||||
|
||||
|
|
Loading…
Reference in New Issue