mirror of https://gitee.com/bigwinds/arangodb
added missing function referenced by simple query API
This commit is contained in:
parent
5ca2930c67
commit
013fea7d01
|
@ -1061,6 +1061,14 @@ function firstRouting (type, parts) {
|
||||||
/// @{
|
/// @{
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
/// @brief convenience function to return an HTTP 400 error for a bad parameter
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
function badParameter (req, res, name) {
|
||||||
|
resultError(req, res, exports.HTTP_BAD, exports.HTTP_BAD, "invalid value for parameter '" + name + "'");
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @brief returns a result
|
/// @brief returns a result
|
||||||
///
|
///
|
||||||
|
@ -1474,6 +1482,7 @@ exports.nextRouting = nextRouting;
|
||||||
exports.routingCache = function() { return RoutingCache; };
|
exports.routingCache = function() { return RoutingCache; };
|
||||||
|
|
||||||
// standard HTTP responses
|
// standard HTTP responses
|
||||||
|
exports.badParameter = badParameter;
|
||||||
exports.resultBad = resultBad;
|
exports.resultBad = resultBad;
|
||||||
exports.resultError = resultError;
|
exports.resultError = resultError;
|
||||||
exports.resultNotFound = resultNotFound;
|
exports.resultNotFound = resultNotFound;
|
||||||
|
|
Loading…
Reference in New Issue