1.0.0 • Published 8 years ago
jsonres-helper v1.0.0
#How to use
npm install --save @unova/jsonres-helper
var JsonResHelper = require('@unova/jsoners-helper');
var jsonResHelper = new JsonResHelper(resourceName);
jsonReshelper.respondWithSuccess(res, data);
jsonReshelper.respondWithInternalFailure(res, message, errors);
jsonReshelper.respondWithValidationError(res, errors);
jsonReshelper.respondWithFailure(res, message, errors);
jsonReshelper.respondWithNotFound(res, message);
1.0.0
8 years ago