mirror of
https://github.com/directus/directus.git
synced 2026-01-29 16:28:02 -05:00
Add basic format response manager
This commit is contained in:
@@ -152,7 +152,7 @@
|
||||
},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"pre-commit": "lint-staged"
|
||||
"pre-commit": "npx lint-staged"
|
||||
}
|
||||
},
|
||||
"lint-staged": {
|
||||
|
||||
15
api/src/middleware/reponse-manager.ts
Normal file
15
api/src/middleware/reponse-manager.ts
Normal 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;
|
||||
Reference in New Issue
Block a user