1
0
Fork 0

Foxx: Manifest File apps -> controllers [BREAKING CHANGE]

Adjusted to the new vocabulary
This commit is contained in:
Lucas Dohmen 2013-09-04 11:12:09 +02:00
parent 94a151ec2f
commit d9213af5ec
3 changed files with 8 additions and 8 deletions

View File

@ -51,7 +51,7 @@ following content:
"name": "my_app", "name": "my_app",
"version": "0.0.1", "version": "0.0.1",
"author": "me and myself", "author": "me and myself",
"apps": { "controllers": {
"/": "app.js" "/": "app.js"
} }
} }
@ -381,7 +381,7 @@ The content is a JSON object with the following keys:
* `repository`: An object with information about where you can find the repository: `type` and `url` * `repository`: An object with information about where you can find the repository: `type` and `url`
* `keywords`: An array of keywords to help people find your Foxx app * `keywords`: An array of keywords to help people find your Foxx app
* `engines`: Should be an object with `arangodb` set to the ArangoDB version your Foxx app is compatible with. * `engines`: Should be an object with `arangodb` set to the ArangoDB version your Foxx app is compatible with.
* `apps`: Map routes to FoxxControllers * `controllers`: Map routes to FoxxControllers
* `lib`: Base path for all required modules * `lib`: Base path for all required modules
* `files`: Deliver files * `files`: Deliver files
* `assets`: Deliver pre-processed files * `assets`: Deliver pre-processed files
@ -431,7 +431,7 @@ script to create all collections your application needs and fill them with
initial data if you want to. Use the `teardown` script to remove all initial data if you want to. Use the `teardown` script to remove all
collections you have created. collections you have created.
`apps` is an object that matches routes to files `controllers` is an object that matches routes to files
------------------------------------------------ ------------------------------------------------
* The `key` is the route you want to mount at * The `key` is the route you want to mount at

View File

@ -5,7 +5,7 @@
"version": "1.0", "version": "1.0",
"isSystem": true, "isSystem": true,
"apps": { "controllers": {
"/": "aardvark.js" "/": "aardvark.js"
}, },

View File

@ -503,11 +503,11 @@ function routingAalApp (app, mount, options) {
}); });
// mount all applications // mount all applications
var apps = app._manifest.apps; var controllers = app._manifest.controllers;
for (i in apps) { for (i in controllers) {
if (apps.hasOwnProperty(i)) { if (controllers.hasOwnProperty(i)) {
var file = apps[i]; var file = controllers[i];
var devel = false; var devel = false;
var root; var root;