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.flat = {};
|
||||
RoutingCache.routes = {};
|
||||
RoutingCache.middleware = {};
|
||||
|
||||
|
@ -1009,7 +1009,7 @@ function firstRouting (type, parts) {
|
|||
url = "/" + parts.join("/");
|
||||
}
|
||||
|
||||
if (! RoutingCache.flat.hasOwnProperty(type)) {
|
||||
if (! RoutingCache.flat || ! RoutingCache.flat.hasOwnProperty(type)) {
|
||||
return {
|
||||
parts: parts,
|
||||
position: -1,
|
||||
|
|
Loading…
Reference in New Issue