mirror of https://gitee.com/bigwinds/arangodb
Simplified BaseMiddleware#params.
This commit is contained in:
parent
de97cfa5fb
commit
1cd0d0aa10
|
@ -177,10 +177,10 @@ function BaseMiddleware() {
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
params: function (key) {
|
||||
var ps = {};
|
||||
_.extend(ps, this.urlParameters);
|
||||
_.extend(ps, this.parameters);
|
||||
return ps[key];
|
||||
if (this.parameters.hasOwnProperty(key)) {
|
||||
return this.parameters[key];
|
||||
}
|
||||
return this.urlParameters[key];
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue