express-api-res
v1.0.0
Published
Node.js api response uniform format returns middleware
Downloads
2
Readme
api-response
Node.js api response uniform format returns middleware.
var express = require('express')
var bodyParser = require('api-response')
const app = express();
app.get("/success_text", function(req, res, next) {
next(new apiResponse.SuccessResponse("OK"))
});
app.use(apiResponse.ResponseJson())