mirror of https://gitee.com/bigwinds/arangodb
initialise variable
This commit is contained in:
parent
d4a116525b
commit
c3f84cb2a6
|
@ -843,7 +843,7 @@ function reloadRouting () {
|
||||||
// .............................................................................
|
// .............................................................................
|
||||||
|
|
||||||
RoutingCache = {};
|
RoutingCache = {};
|
||||||
|
RoutingCache.flat = {};
|
||||||
RoutingCache.routes = {};
|
RoutingCache.routes = {};
|
||||||
RoutingCache.middleware = {};
|
RoutingCache.middleware = {};
|
||||||
|
|
||||||
|
@ -1009,7 +1009,7 @@ function firstRouting (type, parts) {
|
||||||
url = "/" + parts.join("/");
|
url = "/" + parts.join("/");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! RoutingCache.flat.hasOwnProperty(type)) {
|
if (! RoutingCache.flat || ! RoutingCache.flat.hasOwnProperty(type)) {
|
||||||
return {
|
return {
|
||||||
parts: parts,
|
parts: parts,
|
||||||
position: -1,
|
position: -1,
|
||||||
|
|
Loading…
Reference in New Issue