6956-2410_devTest #2112
|
@ -1,12 +1,13 @@
|
|||
|
||||
const UserError = require('../../util/user-error');
|
||||
const UserError = require('vn-loopback/util/user-error');
|
||||
const logToConsole = require('strong-error-handler/lib/logger');
|
||||
const valueIsNot = require('./value-is-not');
|
||||
const valueInvalid = require('./value-invalid');
|
||||
|
||||
const mapMethods = require('vn-loopback/util/map-methods')
|
||||
const validations = [
|
||||
valueIsNot,
|
||||
valueInvalid
|
||||
valueInvalid,
|
||||
mapMethods
|
||||
];
|
||||
module.exports = function() {
|
||||
return function(err, req, res, next) {
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
const SLASH = '/';
|
||||
const MODULES = 'modules';
|
||||
const BACK = 'back';
|
||||
|
||||
const app = require('vn-loopback/server/server');
|
||||
|
||||
const modelsMethods = app;
|
||||
function keyMap(model, local, connector = '_') {
|
||||
return `${model}${connector}${local}`;
|
||||
}
|
||||
module.exports = modelsMethods;
|
||||
|
Loading…
Reference in New Issue