mirror of
https://github.com/directus/directus.git
synced 2026-01-29 07:27:57 -05:00
Add basic format response manager
This commit is contained in:
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