Add basic format response manager

This commit is contained in:
kukulaka
2020-09-02 15:01:17 +01:00
parent 3f0c4070c1
commit ec8d2baf17
2 changed files with 16 additions and 1 deletions

View File

@@ -152,7 +152,7 @@
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
"pre-commit": "npx lint-staged"
}
},
"lint-staged": {

View File

@@ -0,0 +1,15 @@
import { RequestHandler } from 'express';
import asyncHandler from 'express-async-handler';
/**
* middleware to manage actions on responses such as
* export / import and caching
* @todo move caching into here.
*
*/
const responseManager: RequestHandler = asyncHandler(async (req, res, next) => {
return next();
});
export default responseManager;