mirror of https://gitee.com/bigwinds/arangodb
Removed `apps` as an alias for `controllers` in Foxx manifest files
This commit is contained in:
parent
b9c688d117
commit
b8e0d95b69
|
@ -12,6 +12,7 @@ migrations will also be detailed here.
|
|||
## 2.2
|
||||
|
||||
* Foxx: The usage of `controller.collection` is no longer suggested, it will be deprecated in the next version. Please use `appContext.collection` instead.
|
||||
* Foxx: The usage of `apps` in manifest files is no longer possible, please use `controllers` instead.
|
||||
|
||||
## 2.3
|
||||
|
||||
|
|
|
@ -104,19 +104,7 @@ function checkManifest (filename, mf) {
|
|||
mf.description = "";
|
||||
}
|
||||
|
||||
if (mf.hasOwnProperty("apps")) {
|
||||
console.warn("Manifest '%s' still contains the deprecated 'apps' attribute. " +
|
||||
"Please change the attribute name to 'controllers'.", filename);
|
||||
|
||||
if (! mf.hasOwnProperty("controllers")) {
|
||||
// controllers = apps
|
||||
mf.controllers = mf.apps;
|
||||
delete mf.apps;
|
||||
}
|
||||
}
|
||||
|
||||
// validate all attributes specified in the manifest
|
||||
|
||||
// Validate all attributes specified in the manifest
|
||||
// the following attributes are allowed with these types...
|
||||
var expected = {
|
||||
"assets": [ false, "object" ],
|
||||
|
|
Loading…
Reference in New Issue